emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Nick Dokos <ndokos@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: searching for csv utilities
Date: Thu, 4 Jun 2015 17:45:04 +0200	[thread overview]
Message-ID: <CALn3zogMN3F6mjzYtyOVccPBQJN2yzoFCANvzpt8y9KRKPLQsw@mail.gmail.com> (raw)
In-Reply-To: <877frjh51g.fsf@alphaville.usersys.redhat.com>

Hi Nick

On Thu, Jun 4, 2015 at 5:22 PM, Nick Dokos <ndokos@gmail.com> wrote:
> Also, if one uses a format on an undefined function (e.g. using
> vmode(@I..@II); %.2f), I get 0.0 as a result and the error is hidden -
> if the format is omitted, the literal vmode([...]) appears in the table,
> so in that case at least one gets a hint that something is wrong. That
> probably qualifies as a bug, but I don't know how easy it would be to fix.

Yes. Anyway, Calc has its own formatter which can be a solution:

| Date             |              Sys |            Dia |
Pul |          Sugar |
|------------------+------------------+----------------+----------------+----------------|
| [2014-04-27 Sun] |              125 |             88 |
78 |             92 |
| [2014-04-28 Mon] |              102 |             88 |
86 |             92 |
|------------------+------------------+----------------+----------------+----------------|
| vmean            |           113.50 |          88.00 |
82.00 |          92.00 |
| vcount           |             2.00 |           2.00 |
2.00 |           2.00 |
| vmax             |           125.00 |          88.00 |
86.00 |          92.00 |
| vmedian          |           113.50 |          88.00 |
82.00 |          92.00 |
| vmin             |           102.00 |          88.00 |
78.00 |          92.00 |
| vstdev           | vstdev(125, 102) | vstdev(88, 88) | vstdev(78,
86) | vstdev(92, 92) |
| vsum             |           227.00 |         176.00 |
164.00 |         184.00 |
|------------------+------------------+----------------+----------------+----------------|
#+TBLFM: @>>>>>>>$2..@>$> = apply($1, @I..@II) +.0; f-2

See also the Worg FAQ
http://orgmode.org/worg/org-faq.html#table-float-fraction

Michael

  parent reply	other threads:[~2015-06-04 15:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 11:44 searching for csv utilities Jude DaShiell
2015-06-02 12:04 ` Jonathan Leech-Pepin
2015-06-03 15:46   ` Jude DaShiell
2015-06-03 16:07   ` Jude DaShiell
2015-06-03 16:38     ` Jonathan Leech-Pepin
2015-06-03 21:12       ` Jude DaShiell
2015-06-03 22:01         ` Nick Dokos
2015-06-03 17:21     ` Nick Dokos
2015-06-03 18:04       ` Nick Dokos
2015-06-03 20:05       ` Michael Brand
2015-06-03 20:52         ` Nick Dokos
2015-06-04  7:21         ` e.fraga
2015-06-04  9:15           ` Michael Brand
2015-06-04 15:22             ` Nick Dokos
2015-06-04 15:43               ` Nick Dokos
2015-06-04 15:45               ` Michael Brand [this message]
2015-06-04  1:21   ` Jude DaShiell
2015-06-04 21:24 ` Thierry Banel
2015-06-05  7:13   ` Eric S Fraga
  -- strict thread matches above, loose matches on Subject: below --
2015-06-19  0:58 Jude DaShiell

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=CALn3zogMN3F6mjzYtyOVccPBQJN2yzoFCANvzpt8y9KRKPLQsw@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /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).