[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] extract a region from a table and export it
From: |
Rasmus |
Subject: |
Re: [O] extract a region from a table and export it |
Date: |
Fri, 17 Jun 2016 15:42:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Uwe Brauer <address@hidden> writes:
> > John Kitchin <address@hidden> writes:
> D> the problem seems to be that c0 and c2 are set to nil for some reason. I
>
> > Or
>
> > #+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2]
> > (cl-mapcar 'list c0 c2)
> > #+END_SRC
>
> Thanks but I obtain
>
> #+RESULTS:
> | 110 | 110 |
> | 105 | 105 |
> | 108 | 108 |
>
> Which is wrong.
Incidentally,
(mapcar 'string-to-char '("n" "i" "l")) => (110 105 108)
Probably your references are not right. E.g. in Org-8.2 this file would
produce your observed result.
#+tblname: tab2
| 1 | a | 3 |
| 2 | b | 4 |
| 3 | c | 6 |
| 4 | d | 7 |
#+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2]
(cl-mapcar 'list c0 c2)
#+END_SRC
--
A clever person solves a problem. A wise person avoids it
- Re: [O] extract a region from a table and export it, (continued)
- Re: [O] extract a region from a table and export it, Uwe Brauer, 2016/06/16
- Re: [O] extract a region from a table and export it, John Kitchin, 2016/06/16
- Re: [O] extract a region from a table and export it, Uwe Brauer, 2016/06/17
- Re: [O] extract a region from a table and export it, John Kitchin, 2016/06/17
- Re: [O] extract a region from a table and export it, Rasmus, 2016/06/17
- Re: [O] extract a region from a table and export it, Uwe Brauer, 2016/06/17
- Re: [O] extract a region from a table and export it, Rasmus, 2016/06/17
- Re: [O] extract a region from a table and export it,
Rasmus <=
- Re: [O] extract a region from a table and export it, Uwe Brauer, 2016/06/17
- Re: [O] extract a region from a table and export it, John Kitchin, 2016/06/17
- Re: [O] extract a region from a table and export it, Uwe Brauer, 2016/06/17
- Re: [O] extract a region from a table and export it, Uwe Brauer, 2016/06/17