From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: extract a column from a table but but an name on the new table Date: Thu, 24 May 2018 15:08:37 +0200 Message-ID: <87y3g9fbfu.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLpz9-0003oD-Th for emacs-orgmode@gnu.org; Thu, 24 May 2018 09:08:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLpz4-0003dE-5M for emacs-orgmode@gnu.org; Thu, 24 May 2018 09:08:51 -0400 Received: from [195.159.176.226] (port=40890 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLpz3-0003cm-Um for emacs-orgmode@gnu.org; Thu, 24 May 2018 09:08:46 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fLpwu-0003KK-HR for emacs-orgmode@gnu.org; Thu, 24 May 2018 15:06:32 +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 Thierry Banel one of the authors of orgtbl-aggregate.el Suggested to me the following code, if just want to extract one column of a table. #+TBLNAME: raw-data | 1 | a | 3 | | 2 | b | 4 | | 3 | c | 6 | | 4 | d | 7 | #+BEGIN_SRC elisp :var data=raw-data (mapcar (lambda (line) (list (nth 2 line))) data) #+END_SRC #+RESULTS: | 3 | | 4 | | 6 | | 7 | It works nicely but how could I obtain the result with a table name, like: #+TBLNAME: RESULTS | 3 | | 4 | | 6 | | 7 | Or something like this? Thanks Uwe Brauer