emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thomas S. Dye <tsd@tsdye.com>
To: "Cook, Malcolm" <MEC@stowers.org>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	"Allen S. Rout" <asr@ufl.edu>,
	'John Kitchin' <jkitchin@andrew.cmu.edu>
Subject: Re: orgmode and R?
Date: Mon, 03 Aug 2015 10:29:37 -1000	[thread overview]
Message-ID: <m2egjkunda.fsf@tsdye.com> (raw)
In-Reply-To: <3cc4f39ec88b47a08ff1972a2f39aa28@exchsrv2.sgc.loc>

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 <MEC@stowers.org> 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 <asr@ufl.edu>
>> 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

      reply	other threads:[~2015-08-03 20:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 16:51 orgmode and R? Jude DaShiell
2015-08-03 17:58 ` John Kitchin
2015-08-03 19:47 ` Allen S. Rout
2015-08-03 20:05   ` John Kitchin
2015-08-03 20:08     ` Cook, Malcolm
2015-08-03 20:29       ` Thomas S. Dye [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2egjkunda.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=MEC@stowers.org \
    --cc=asr@ufl.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).