From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: table formula help... Date: Tue, 09 Dec 2014 20:01:49 +0100 Message-ID: <5487471D.5070807@free.fr> References: <87ppbxfi5f.fsf@ericabrahamsen.net> <54838805.8090705@free.fr> <8761do6t01.fsf@ericabrahamsen.net> <5484CD5C.9070604@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyQ2m-0006DB-Kl for emacs-orgmode@gnu.org; Tue, 09 Dec 2014 14:02:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyQ2h-0006Fq-JC for emacs-orgmode@gnu.org; Tue, 09 Dec 2014 14:01:56 -0500 Received: from smtp5-g21.free.fr ([212.27.42.5]:19680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyQ2h-0006Fa-9Z for emacs-orgmode@gnu.org; Tue, 09 Dec 2014 14:01:51 -0500 Received: from [IPv6:2a01:e35:2e21:def0:c90f:b89b:d367:7611] (unknown [IPv6:2a01:e35:2e21:def0:c90f:b89b:d367:7611]) by smtp5-g21.free.fr (Postfix) with ESMTP id 28832D48072 for ; Tue, 9 Dec 2014 20:00:30 +0100 (CET) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode Le 08/12/2014 19:02, Michael Brand a =C3=A9crit : > #+TBLNAME: original > | Item | Value | > |------+-------| > | a2 | 1 | > | a2 | 1 | > | a0 | -1 | > | a0 | 1 | > | b2 | 2 | > | b2 | | > | b0 | 0 | > | b0 | | > | c | | > | c | | > > #+BEGIN: aggregate :table original :cols "Item sum(Value) mean(Value)" > | Item | sum(Value) | mean(Value) | > |------+------------+-------------| > | a2 | 2 | 1 | > | a0 | | | > | b2 | 2 | 1 | > | b0 | | | > | c | | | > #+END > > Could you please add this example or something in the same sense to > the unittests.org before any other change? > Done under the title "* Test zero output". There is also a new "* Test empty inputs" were several empty input cases are tested against all the available aggregations (sum, mean, max, corr, and so on). I will work on a new and clean design for handling empty inputs. It shouldn't be so difficult after all. Stay tuned. Have fun Thierry