From: Michael Brand <michael.ch.brand@gmail.com>
To: Thierry Banel <tbanelwebmin@free.fr>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: table formula help...
Date: Sat, 13 Dec 2014 19:27:19 +0100 [thread overview]
Message-ID: <CALn3zoieBDL5-taiWr_TR4t47bYyFtTyr3+mzoAzRw_TDT_QKA@mail.gmail.com> (raw)
In-Reply-To: <548B585F.6000404@free.fr>
Hi Thierry
On Fri, Dec 12, 2014 at 10:04 PM, Thierry Banel <tbanelwebmin@free.fr> wrote:
> Le 12/12/2014 18:15, Michael Brand a écrit :
> Seems doable.
> Would tie the spreadsheet and orgaggregate seamlessly.
> Very appealing!
>
> Are you willing to help me implement those steps?
Where necessary I try to help.
I would break it down to these commits and take a larger break
after 3):
1) Prepare for Calc syntax: Adapt the "(case fun [...]" of
orgtbl-aggregate-apply-calc-*-function to move from :cols "sum(x)"
etc. to :cols "vsum(x)" etc.
#+BEGIN: aggregate :table test :cols ("Item" "vsum(x)")
| Item | vsum(x) |
|------+---------|
2) Add a separate target column header: The "=" is only a suggestion
how to separate the target column header from the formula.
#+BEGIN: aggregate :table test :cols ("Item" "Header = vsum(x)")
| Item | Header |
|------+--------|
3) Unleash complete Calc syntax: Make use of (org-table-make-reference
with KEEP-EMPTY and NUMBERS constantly nil and use calc-eval
#+BEGIN: aggregate :table test :cols ("Item" "Header = 2 * vsum(x)
+ 3 * vmean(y)")
| Item | Header |
|------+--------|
4) Add the mode strings "E" and "N": Parse and pass them to KEEP-EMPTY
and NUMBERS of org-table-make-reference.
#+BEGIN: aggregate :table test :cols ("Item" "Header = 2 * vsum(x)
+ 3 * vmean(y); EN")
| Item | Header |
|------+--------|
5) Someday add more mode strings.
Michael
next prev parent reply other threads:[~2014-12-13 18:27 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-06 5:42 table formula help Eric Abrahamsen
2014-12-06 7:37 ` Thomas S. Dye
2014-12-06 8:05 ` Michael Brand
2014-12-06 8:32 ` Eric Abrahamsen
2014-12-06 22:49 ` Thierry Banel
2014-12-07 2:05 ` Eric Abrahamsen
2014-12-07 3:25 ` Eric Abrahamsen
2014-12-07 9:20 ` Thierry Banel
2014-12-07 9:40 ` Michael Brand
2014-12-07 10:02 ` Thierry Banel
2014-12-07 10:26 ` Michael Brand
2014-12-07 14:51 ` Thierry Banel
2014-12-07 16:13 ` Thierry Banel
2014-12-07 16:48 ` Michael Brand
2014-12-08 21:12 ` Thierry Banel
2014-12-08 22:32 ` Thierry Banel
2014-12-10 21:08 ` Michael Brand
2014-12-08 3:52 ` Eric Abrahamsen
2014-12-07 9:39 ` Michael Brand
2014-12-07 9:55 ` Thierry Banel
2014-12-07 21:57 ` Thierry Banel
2014-12-08 18:02 ` Michael Brand
2014-12-08 21:57 ` Thierry Banel
2014-12-09 5:54 ` Michael Brand
2014-12-09 18:12 ` Thierry Banel
2014-12-09 19:01 ` Thierry Banel
2014-12-09 22:35 ` Thierry Banel
2014-12-10 21:06 ` Michael Brand
2014-12-10 22:55 ` Thierry Banel
2014-12-12 17:15 ` Michael Brand
2014-12-12 21:04 ` Thierry Banel
2014-12-13 18:27 ` Michael Brand [this message]
2015-01-25 22:21 ` Thierry Banel
2015-01-26 2:48 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALn3zoieBDL5-taiWr_TR4t47bYyFtTyr3+mzoAzRw_TDT_QKA@mail.gmail.com \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=tbanelwebmin@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).