From mboxrd@z Thu Jan 1 00:00:00 1970 From: hubert Subject: Re: plotting a transposed table Date: Tue, 18 Mar 2014 14:19:41 -0400 Message-ID: <87bnx3qshu.fsf@desiato.home.uhoreg.ca> References: <87lhw7qwy1.fsf@desiato.home.uhoreg.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPycM-0007jD-Dz for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 14:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPycG-0007AR-Hj for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 14:20:02 -0400 Received: from plane.gmane.org ([80.91.229.3]:36530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPycG-0007AN-B0 for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 14:19:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WPycB-0006NW-05 for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 19:19:51 +0100 Received: from 184.175.10.244 ([184.175.10.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Mar 2014 19:19:50 +0100 Received: from hubert by 184.175.10.244 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Mar 2014 19:19:50 +0100 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 On Tue, 18 Mar 2014 07:44:20 -1000, tsd@tsdye.com (Thomas S. Dye) said: [...] > #+name: transpose > #+begin_src emacs-lisp :var table=transpose-example > (apply #'mapcar* #'list table) > #+end_src Thanks. That works, except that hlines in the table confuse it, so I modified it as below (using --filter from dash.el). #+name: transpose #+begin_src emacs-lisp :var table=plans (apply #'mapcar* #'list (--filter (not (eq 'hline it)) table)) #+end_src A solution that doesn't require an intermediate table would be ideal, but this is usable. -- Hubert Chathi - Email/Jabber: hubert@uhoreg.ca - http://www.uhoreg.ca/ PGP/GnuPG key: 4096R/113A1368 (Key available at pool.sks-keyservers.net) Fingerprint: F24C F749 6C73 DDB8 DCB8 72DE B2DE 88D3 113A 1368