emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: hubert <hubert@uhoreg.ca>
To: emacs-orgmode@gnu.org
Subject: Re: plotting a transposed table
Date: Tue, 18 Mar 2014 14:19:41 -0400	[thread overview]
Message-ID: <87bnx3qshu.fsf@desiato.home.uhoreg.ca> (raw)
In-Reply-To: m2iorbh05n.fsf@tsdye.com

On Tue, 18 Mar 2014 07:44:20 -1000, tsd@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 (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: hubert@uhoreg.ca - 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	other threads:[~2014-03-18 18:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-18 16:43 plotting a transposed table hubert
2014-03-18 17:44 ` Thomas S. Dye
2014-03-18 18:19   ` hubert [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=87bnx3qshu.fsf@desiato.home.uhoreg.ca \
    --to=hubert@uhoreg.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).