From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Determine min/max values in a table Date: Sat, 5 Aug 2017 23:20:32 +0200 Message-ID: <2017-08-05T23-19-14@devnull.Karl-Voit.at> References: <2017-08-02T14-05-32@devnull.Karl-Voit.at> <598242B0.8010004@free.fr> <87a83hou3n.fsf@alphapapa.net> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1de6V7-0002RL-MB for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 17:20:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1de6V3-0001f4-OQ for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 17:20:49 -0400 Received: from [195.159.176.226] (port=51758 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1de6V3-0001eA-Hf for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 17:20:45 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1de6Ut-0006Ou-Am for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 23:20:35 +0200 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" To: emacs-orgmode@gnu.org * Adam Porter wrote: > Thierry Banel writes: > >> Alternatively you have the orgtbl-aggregate package available on Melpa. >> >> #+BEGIN: aggregate :table "myvalues" :cols "min(Values) max(Values) >> mean(Values)" >> >> | min(Values) | max(Values) | mean(Values) | >> |-------------+-------------+--------------| >> | 2 | 7 | 4.5 | > > Wow, that's very cool! Had no idea about that package. Although I do have the package installed, I did not think about min/max/mean of it ;-) > Karl, if that doesn't work for you, you might look at the > org-table-to-lisp function. Here's an example of a function that uses > it to sum columns in the current region: Thanks for the code I copied to my knowledge base. For now, vmin/vmax did the trick and I also refreshed my knowledge of orgtbl-aggregate. -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/