emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] orgmode and R?


From: Thomas S . Dye
Subject: Re: [O] orgmode and R?
Date: Mon, 03 Aug 2015 10:29:37 -1000

Yes, certainly.

#+name: eg
| a | b |
| c | d |

#+name: table-eg
#+begin_src R :var table=eg
print(table[,1])
#+end_src

#+results: table-eg
| a |
| c |

hth,
Tom

Cook, Malcolm <address@hidden> writes:

> It is possible to send a org table to R as a data.frame, which could edit it, 
> add columns, and produce a new data.frame which, with :results value, will be 
> understood by org as an table.
>
>
>> -----Original Message-----
>> From: address@hidden [mailto:emacs-
>> address@hidden On Behalf Of John Kitchin
>> Sent: Monday, August 03, 2015 3:06 PM
>> To: Allen S. Rout <address@hidden>
>> Cc: address@hidden
>> Subject: Re: [O] orgmode and R?
>> 
>> I think the question was about using R in table formulas, not just using R in
>> src-block.
>> 
>> As far as I know it is possible to use emacs-lisp pretty directly, but not 
>> other
>> languages in the table formulas.
>> 
>> Allen S. Rout writes:
>> 
>> > On 08/03/2015 12:51 PM, Jude DaShiell wrote:
>> >> Can the orgmode spreadsheet access R either directly or indirectly
>> >> through maybe babel?  If this is possible, do any tutorials exist
>> >> with some worked examples?  I have R and emacs-R-mode installed so I
>> >> can access R from emacs at least.
>> >>
>> >
>> > Yes.
>> >
>> > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html
>> >
>> > is the first hit on "org-mode R" from google.
>> >
>> > There is extensive art on the topic.
>> >
>> >
>> > - Allen S. Rout
>> 
>> --
>> 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

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

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