From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: searching for csv utilities Date: Wed, 3 Jun 2015 22:05:24 +0200 Message-ID: References: <87d21ciu82.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Euk-0001GW-GS for emacs-orgmode@gnu.org; Wed, 03 Jun 2015 16:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0Euj-0003cq-M8 for emacs-orgmode@gnu.org; Wed, 03 Jun 2015 16:05:26 -0400 Received: from mail-yh0-x22f.google.com ([2607:f8b0:4002:c01::22f]:36354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Euj-0003cm-I2 for emacs-orgmode@gnu.org; Wed, 03 Jun 2015 16:05:25 -0400 Received: by yhan67 with SMTP id n67so4932574yha.3 for ; Wed, 03 Jun 2015 13:05:24 -0700 (PDT) In-Reply-To: <87d21ciu82.fsf@alphaville.usersys.redhat.com> 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 On Wed, Jun 3, 2015 at 7:21 PM, Nick Dokos wrote: > | Date | Sys | Dia | Pul | Sugar | > |----------------------+--------+-------+-------+-------| > | [2014-04-27 Sun] | 125 | 88 | 78 | 92 | > | [2014-04-28 Mon] | 102 | 88 | 86 | 92 | > |----------------------+--------+-------+-------+-------| > | Averages: | 113.50 | 88.00 | 82.00 | 92.00 | > | Counts: | 2 | 2 | 2 | 2 | > | Maximums: | 125.00 | 88.00 | 86.00 | 92.00 | > | Medians: | | | | | > | Minimums: | | | | | > | Modes: | | | | | > | Standard Deviations: | | | | | > | Sums: | | | | | > |----------------------+--------+-------+-------+-------| > #+TBLFM: @>>>>>>>>$2..@>>>>>>>>$> = vmean(@I..@II);%.2f :: @>>>>>>>$2..@>>>>>>>$> = vcount(@I..@II) :: @>>>>>>$2..@>>>>>>$> = vmax(@I..@II);%.2f I just found the Calc function apply() which leads to this simplification: | 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 | 0.00 | 0.00 | 0.00 | 0.00 | | vsum | 227.00 | 176.00 | 164.00 | 184.00 | |------------------+--------+--------+--------+--------| #+TBLFM: @>>>>>>>$2..@>$> = apply($1, @I..@II); %.2f Michael