From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: table formula help... Date: Tue, 09 Dec 2014 23:35:40 +0100 Message-ID: <5487793C.1080800@free.fr> References: <87ppbxfi5f.fsf@ericabrahamsen.net> <54838805.8090705@free.fr> <8761do6t01.fsf@ericabrahamsen.net> <5484CD5C.9070604@free.fr> <5487471D.5070807@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyTNg-00054t-7E for emacs-orgmode@gnu.org; Tue, 09 Dec 2014 17:35:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyTNf-0008MF-71 for emacs-orgmode@gnu.org; Tue, 09 Dec 2014 17:35:44 -0500 Received: from smtp5-g21.free.fr ([2a01:e0c:1:1599::14]:28178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyTNe-0008Ls-Q8 for emacs-orgmode@gnu.org; Tue, 09 Dec 2014 17:35:43 -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 5375DD48002 for ; Tue, 9 Dec 2014 23:34:20 +0100 (CET) In-Reply-To: <5487471D.5070807@free.fr> 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: emacs-orgmode@gnu.org Ok, done. A clean design has been implemented for handling empty cells. Basically, empty input cells are ignored, and therefore they do not participate in the aggregation. (However, for aggregation using two columns (=corr(p,q)= for example), if a pair of cells contains both an empty and a non-empty cell, then the empty one is replaced by zero.) On output, empty cells are generated when the aggregation function does not have enough input. For instance, =mean= needs at least one value, otherwise a division by zero happens. Thanks to Michael Brand for his insight and suggestions. Source code and documentation here: https://github.com/tbanel/orgaggregate Melpa installation: (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages") t) (package-initialize) M-x package-list-packages install orgtbl-aggregate Have fun Thierry