emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Roger Mason <rmason@mun.ca>
To: emacs-orgmode@gnu.org
Subject: Re: return column from table as a column
Date: Tue, 17 Aug 2021 18:12:16 -0230	[thread overview]
Message-ID: <y65r1erls5z.fsf@mun.ca> (raw)
In-Reply-To: <sf8br8$90c$1@ciao.gmane.io>

Hello,

Maxim Nikulin writes:

> Notice that you can get vertical representation of results as a list
> #+begin_src emacs-lisp :results list
>
> The following is a variation of a recipe suggested by Juan Manuel:
>
> #+name: to-column
> #+begin_src emacs-lisp :var lst=()
>    (mapcar #'list lst)
> #+end_src
>
> #+begin_src emacs-lisp :var data=s1[,3] :post to-column(lst=*this*)
>    data
> #+end_src
>
> To transform more than one column, the following idea may be useful
>
> (defun rotate (list-of-lists)
>    (apply #'mapcar #'list list-of-lists))
>
> https://stackoverflow.com/questions/3513128/transposing-lists-in-common-lisp

Thank you very much.  I should really make the effort to re-learn
e-lisp.  Not having written anything in it for 10+ years has eroded my
abilities.

Best wishes,
Roger


      reply	other threads:[~2021-08-17 20:43 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
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 [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y65r1erls5z.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).