[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] import R data frame into org-mode table
From: |
Nick Dokos |
Subject: |
Re: [O] import R data frame into org-mode table |
Date: |
Mon, 29 Jul 2013 17:40:27 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
"Cook, Malcolm" <address@hidden> writes:
>
> Indeed, thanks, and, my worked out example follows using emacs 2.18.9 and
> org-mode version 8.0.6
>
2.18.9?
> #+LATEX: \listoftables
> #+LaTeX_HEADER: \usepackage{longtable}
> #+name: longtabletest
> #+CAPTION: test of longtable caption
> #+begin_src R :results value :colnames yes
> data.frame(num=1:260,alpha=rep(LETTERS,10))
> #+end_src
>
> #+RESULTS:
> #+attr_latex: :environment longtable
> | num | alpha |
> |-----+-------|
> | 1 | A |
> | 2 | B |
> ...
Does this really produce a table caption for you when you export to
latex? And does the attr_latex line stay there at the top of the table
when the code block is evaluated? For me, the answers are "no" and
"no". I have to rewrite it as follows in order for it to work:
> #+begin_src R :results value :colnames yes
> data.frame(num=1:260,alpha=rep(LETTERS,10))
> #+end_src
>
> #+CAPTION: test of longtable caption
> #+attr_latex: :environment longtable
> #+RESULTS:
> | num | alpha |
> |-----+-------|
> | 1 | A |
> | 2 | B |
--
Nick
- [O] import R data frame into org-mode table, Rob Stewart, 2013/07/16
- Re: [O] import R data frame into org-mode table, Andreas Leha, 2013/07/17
- Re: [O] import R data frame into org-mode table, Rob Stewart, 2013/07/29
- Re: [O] import R data frame into org-mode table, Cook, Malcolm, 2013/07/29
- Re: [O] import R data frame into org-mode table, John Hendy, 2013/07/29
- Re: [O] import R data frame into org-mode table, Nick Dokos, 2013/07/29
- Re: [O] import R data frame into org-mode table, Cook, Malcolm, 2013/07/29
- Re: [O] import R data frame into org-mode table,
Nick Dokos <=
- Re: [O] import R data frame into org-mode table, Cook, Malcolm, 2013/07/30
Re: [O] import R data frame into org-mode table, Thomas S. Dye, 2013/07/17