From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: calculate frequencies in a table with calc Date: Wed, 26 Dec 2012 09:28:55 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnmMM-0004rV-Uy for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 03:29:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TnmMM-0005Jd-0g for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 03:29:06 -0500 Received: from plane.gmane.org ([80.91.229.3]:60484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnmML-0005JZ-Px for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 03:29:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TnmMW-0002a3-46 for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 09:29:16 +0100 Received: from p5b14dcdc.dip.t-dialin.net ([91.20.220.220]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Dec 2012 09:29:16 +0100 Received: from Stromeko by p5b14dcdc.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Dec 2012 09:29:16 +0100 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: emacs-orgmode@gnu.org Am 25.12.2012 13:59, schrieb Martin Gross: > #+TBLFM: @5$1=vcount(@I..@II)::@6$1=vcount(map(,@I..@II)) > > With the first formula (@5$1) everything inside and outside the > brackets is counted, but with the second (@6$1), where I am asking for > the frequency of 12, only what is outside the brackets is considered. > How could I also include what is inside the brackets, so I get 4? The Calc manual tells you that vcount flattens nested vectors, vmap doesn't. Try @6$1=vcount(map(,vflat(@I..@II))) for the second formula. -- Achim. (on the road :-)