emacs-orgmode
[Top][All Lists]
Advanced

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

Re: return column from table as a column


From: Roger Mason
Subject: Re: return column from table as a column
Date: Fri, 13 Aug 2021 14:02:31 -0230
User-agent: mu4e 1.5.6; emacs 27.2

Hello Juan,

Juan Manuel Macías writes:

> #+name: s1
> | scale |  scale1 |   scale3 |  jid |
> | -     | 1.00402 | 0.952329 | 1632 |
> | -     | 1.00402 | 0.962247 | 1633 |
>
> #+begin_src emacs-lisp :var data=s1 col=3
>     (let* ((column (mapcar (lambda (r) (format "%s" (nth col r))) data)))
>          (mapcar 'list column))
> #+end_src
>
> #+RESULTS:
> |  jid |
> | 1632 |
> | 1633 |

Thank you, I think I may be able to get this to work.

Roger



reply via email to

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