From: Roger Mason <rmason@mun.ca>
To: orgmode <emacs-orgmode@gnu.org>
Subject: Re: return column from table as a column
Date: Fri, 13 Aug 2021 14:02:31 -0230 [thread overview]
Message-ID: <y65wnopl2zk.fsf@mun.ca> (raw)
In-Reply-To: <87czqhieqe.fsf@posteo.net>
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
next prev parent reply other threads:[~2021-08-13 16:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-13 14:17 return column from table as a column Roger Mason
2021-08-13 14:30 ` Greg Minshall
2021-08-13 16:24 ` Roger Mason
2021-08-13 18:47 ` Greg Minshall
2021-08-13 14:47 ` Juan Manuel Macías
2021-08-13 16:32 ` Roger Mason [this message]
2021-08-13 17:12 ` Juan Manuel Macías
2021-08-14 10:30 ` Roger Mason
2021-08-14 12:10 ` Maxim Nikulin
2021-08-17 20:42 ` Roger Mason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=y65wnopl2zk.fsf@mun.ca \
--to=rmason@mun.ca \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.