From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: very long table calc expressions ? Date: Tue, 19 Jun 2018 19:21:42 +0200 Message-ID: <87k1qu1yl5.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVKKk-0006LT-JF for emacs-orgmode@gnu.org; Tue, 19 Jun 2018 13:22:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVKKf-0007KI-JR for emacs-orgmode@gnu.org; Tue, 19 Jun 2018 13:22:22 -0400 Received: from [195.159.176.226] (port=41658 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVKKf-0007Jw-Ci for emacs-orgmode@gnu.org; Tue, 19 Jun 2018 13:22:17 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fVKIW-0003Qu-AX for emacs-orgmode@gnu.org; Tue, 19 Jun 2018 19:20:04 +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 Hi Take the following example #+TBLNAME: data | Name | Cual 1 | |------+--------| | A | NT | | B | NT | | C | MH | | D | AP | | E | MH | | F | SS | | G | NP | | H | NP | | I | NP | | | NT | | | AP | | | AP | | | AP | | | AP | | | SB | #+TBLNAME: stat-final2 | | Frequency | |----+-----------| | SS | 1 | | AP | 5 | | NT | 3 | | SB | 1 | | MH | 2 | | NP | 3 | #+TBLFM: @>$2='(length (org-lookup-all "NP" '(remote(data,@2$2..@>I$2)) nil))::@>>$2='(length (org-lookup-all "MH" '(remote(data,@2$2..@>I$2)) nil))::@>>>$2='(length (org-lookup-all "SB" '(remote(data,@2$2..@>I$2)) nil))::@>>>>$2='(length (org-lookup-all "NT" '(remote(data,@2$2..@>I$2)) nil))::@>>>>>$2='(length (org-lookup-all "AP" '(remote(data,@2$2..@>I$2)) nil))::@>>>>>>$2='(length (org-lookup-all "SS" '(remote(data,@2$2..@>I$2)) nil)) Are there any rules to break this very long expression? Thanks Uwe Brauer