emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org tables into R?


From: Andreas Leha
Subject: Re: [O] org tables into R?
Date: Fri, 02 Jan 2015 20:13:11 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin)

Hi Michael,

Michael Gauland <address@hidden> writes:
> I want to use an R block to manipulate data from an org table, but I'm not
> getting what I expect. 
>
> If I define a table like this:
>
>   #+NAME: data
>   |   A |   B |  C |
>
>   |-----+-----+----|
>   | 115 |  76 | 60 |
>   | 124 |  78 | 55 |
>   | 118 |  73 | 65 |
>   | 114 |  75 | 61 |
>   | 108 |  74 | 82 |
>
> and pass it into R like this:
>
>   #+BEGIN_SRC R :results output :exports both :session :var data.table=data
>   names(data.table)
>   head(data.table)
>   #+END_SRC
>
> I expect to get a table with three columns ("A", "B", and C"), but instead I
> seem to get a single column named "A.B.C":
>
>   #+RESULTS:
>   : [1] "A.B.C"
>   :       A.B.C
>   : 1 115 76 60
>   : 2 124 78 55
>   : 3 118 73 65
>   : 4 114 75 61
>   : 5 108 74 82
>
>
> What am I doing wrong?

I believe, that this is a bug that has been reported already [1] and is
still open.

Regards,
Andreas

[1] 
http://news.gmane.org/find-root.php?message_id=olulhmmtei5.fsf%40med.uni%2dgoettingen.de





reply via email to

[Prev in Thread] Current Thread [Next in Thread]