From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: orgmode and R? Date: Mon, 03 Aug 2015 10:29:37 -1000 Message-ID: References: <3cc4f39ec88b47a08ff1972a2f39aa28@exchsrv2.sgc.loc> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMMMx-00074j-KB for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 16:30:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMMMt-0000EW-4x for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 16:29:59 -0400 Received: from gproxy8-pub.mail.unifiedlayer.com ([67.222.33.93]:36971) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZMMMs-00008l-Ux for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 16:29:55 -0400 In-reply-to: <3cc4f39ec88b47a08ff1972a2f39aa28@exchsrv2.sgc.loc> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Cook, Malcolm" Cc: "emacs-orgmode@gnu.org" , "Allen S. Rout" , 'John Kitchin' 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 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: emacs-orgmode-bounces+mec=stowers.org@gnu.org [mailto:emacs- >> orgmode-bounces+mec=stowers.org@gnu.org] On Behalf Of John Kitchin >> Sent: Monday, August 03, 2015 3:06 PM >> To: Allen S. Rout >> Cc: emacs-orgmode@gnu.org >> 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