From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: calculating column averages follow up
Date: Sat, 23 Jul 2011 11:39:28 +0200 [thread overview]
Message-ID: <87y5zpxrn3.fsf@Rainer.invalid> (raw)
In-Reply-To: alpine.BSF.2.00.1107230451300.87885@freire1.furyyjbeyq.arg
Jude DaShiell <jdashiel@shellworld.net> writes:
> Thanks, here's what I have now and it almost works. When I add a new
> line though the averages don't change until I delete the TBLFM: line and
> the line with the =vmean(@2..-1) formulas on it then key the formulas in
> again. Then the averages do update to reflect new numbers. That's not
> a difficulty though, I can easily handle that light work using a sed
> script.
Nah... I think you would want you table like that:
| | Date Stamp | Systolic | Diastolic | Pulse |
|---+------------------------+----------+-----------+-------|
| | [2011-07-19 Tue 02:26] | 138 | 92 | 174 |
| | [2011-07-21 Thu 03:50] | 128 | 79 | 76 |
| | [2011-07-20 Wed 04:03] | 130 | 85 | 74 |
| | [2011-07-22 Fri 02:33] | 121 | 80 | 79 |
| | [2011-07-23 Sat 02:52] | 118 | 75 | 68 |
|---+------------------------+----------+-----------+-------|
| # | Average | 127.0 | 82.2 | 94.2 |
| | | | | |
#+TBLFM: @>>$3..@>>$5=vmean(@I..II);%.1f
Then you can just add another line, tab into the averages line and
everything updates just the way you want.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
prev parent reply other threads:[~2011-07-23 9:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-22 9:35 calculating column averages follow up Jude DaShiell
2011-07-22 10:55 ` Nick Dokos
2011-07-23 8:56 ` Jude DaShiell
2011-07-23 9:39 ` Achim Gratz [this message]
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=87y5zpxrn3.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/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).