emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] plotting a transposed table


From: hubert
Subject: Re: [O] plotting a transposed table
Date: Tue, 18 Mar 2014 14:19:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

On Tue, 18 Mar 2014 07:44:20 -1000, address@hidden (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: address@hidden - 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]