[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] import R data frame into org-mode table
From: |
Rob Stewart |
Subject: |
Re: [O] import R data frame into org-mode table |
Date: |
Mon, 29 Jul 2013 15:42:41 +0100 |
Hi Andreas,
On 17 July 2013 23:09, Andreas Leha <address@hidden> wrote:
> Definitely there is:
>
> --8<---------------cut here---------------start------------->8---
> #+begin_src R :results table :colnames yes
> read.csv('test.csv')
> #+end_src
>
> #+results:
> | X | Variant | Xaxis | N | mean | sd | se |
> |---+---------+-------+---+--------+------+------|
> | 1 | line1 | 10 | 5 | 111.11 | 9.33 | 3.11 |
> | 1 | line1 | 20 | 5 | 112.11 | 9.13 | 3.14 |
> | 1 | line1 | 30 | 5 | 113.11 | 9.43 | 3.1 |
> | 1 | line2 | 10 | 5 | 101.11 | 8.33 | 2.11 |
> | 1 | line2 | 20 | 5 | 100.11 | 8.13 | 2.12 |
> | 1 | line2 | 30 | 5 | 108.11 | 8.03 | 2.1 |
>
> --8<---------------cut here---------------end--------------->8---
Great. I've gone ahead and done this. There are two additional requirements:
1) My table needs a caption. Will #+CAPTION: just above the
#+BEGIN_SRC just work? Even better, a label, allowing me to also cross
reference it.
2) My table is too long for 1 page. It spans multiple pages
vertically. According to this StackOverflow answer
http://stackoverflow.com/a/2896850/1526266 , I should instead use
longtable, not tabular. Is there a way to coerce your above snippet to
use longtable, instead of tabular which is the default.
Thanks!
--
Rob
- [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 <=
- 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, 2013/07/29
- 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