On Tue, 18 Mar 2014 07:44:20 -1000, t...@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 (usin
Aloha hubert,
Could you use the transpose function in the Library of Babel?
#+name: transpose-example
| 1 | 2 | 3 |
| 4 | 5 | 6 |
#+name: transpose
#+begin_src emacs-lisp :var table=transpose-example
(apply #'mapcar* #'list table)
#+end_src
#+results: transpose
| 1 | 4 |
| 2 | 5 |
| 3 | 6 |
I have a table where the data runs left-to-right instead of
top-to-bottom. For example:
| year | 2014 | 2015 | 2016 | 2017 | 2018 |
| value |1 |2 |3 |4 |5 |
Gnuplot expects the data to be top-to-bottom, but I want to keep the
table in that format. I know that I could wr