From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: extract a region from a table and export it
Date: Thu, 16 Jun 2016 13:18:30 -0400 [thread overview]
Message-ID: <m2shwdvyqh.fsf@Johns-MacBook-Air.local> (raw)
In-Reply-To: <87twgt2jvb.fsf@mat.ucm.es>
#+BEGIN_SRC emacs-lisp :var data=example-table[,0]
(mapcar 'list data)
#+END_SRC
#+RESULTS:
| 1 |
| 2 |
| 3 |
| 4 |
Uwe Brauer writes:
> > Uwe Brauer <oub@mat.ucm.es> writes:
>
> > See (info "(org) var") in particular the section on "Indexable variable
> > values".
>
>
> > Additionally, an empty index, or the single character ‘*’,
> > are both
> > interpreted to mean the entire range and as such are equivalent to
> > ‘0:-1’, as shown in the following example in which the entire first
> > column is referenced.
>
> > #+NAME: example-table
> > | 1 | a |
>
> > | 2 | b |
> > | 3 | c |
> > | 4 | d |
>
> > #+BEGIN_SRC emacs-lisp :var data=example-table[,0]
> > data
> > #+END_SRC
>
> > #+RESULTS:
> > | 1 | 2 | 3 | 4 |
>
> Thanks that looks like a very simple solution, however how can one
> obtain the first column of the table in column format? (I know I could
> transverse it, but just out of curiosity.
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
next prev parent reply other threads:[~2016-06-16 17:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-14 10:44 extract a region from a table and export it Uwe Brauer
2016-06-14 11:14 ` Philip Hudson
2016-06-14 11:19 ` John Kitchin
2016-06-14 12:13 ` Uwe Brauer
2016-06-14 12:17 ` Uwe Brauer
2016-06-14 12:42 ` John Kitchin
2016-06-14 13:10 ` Uwe Brauer
2016-06-14 16:12 ` Rasmus
2016-06-16 16:12 ` Uwe Brauer
2016-06-16 17:18 ` John Kitchin [this message]
2016-06-17 8:59 ` Uwe Brauer
2016-06-16 16:16 ` Uwe Brauer
2016-06-16 17:23 ` John Kitchin
2016-06-17 9:01 ` Uwe Brauer
2016-06-17 11:03 ` John Kitchin
2016-06-17 11:34 ` Rasmus
2016-06-17 13:08 ` Uwe Brauer
2016-06-17 13:42 ` Rasmus
2016-06-17 13:42 ` Rasmus
2016-06-17 17:26 ` Uwe Brauer
2016-06-17 13:47 ` John Kitchin
2016-06-17 17:25 ` Uwe Brauer
2016-06-17 13:07 ` Uwe Brauer
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=m2shwdvyqh.fsf@Johns-MacBook-Air.local \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=oub@mat.ucm.es \
/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.