Skip to content

R and Excel

5 messages · Erich Neuwirth, ajay ohri

#
Even using the VBA back of Excel to create interfaces with R would
make a lot of sense. Suppose I could have access to VBA macros that
import and export data into R , it would be great.

The R GUI series like Rattle come even closer to Excel...so a VBA
_R_ExCel package might  be useful to ordinary folks .

Besides Excel costs money, so adding R functions to Open Office would
help both of them ( if not attempted already)

Regards,

Ajay

www.decisionstats.com
On 1/8/09, Stavros Macrakis <macrakis at alum.mit.edu> wrote:

  
    
#
There is RExcel (available by downloading the CRAN package
RExcelInstaller. It allows to transfer data between R and Excel,
and run R code from within Excel. So you can start with your data in
Excel, let R do an analysis, and transfer the results back to Excel.
You can write VBA macros which do this, but "hidden from exposure",
so the Excel user does not even notice that R is doing the hatd work.
It also has an Excel worksheet function RApply which allows
to call an R function from an Excel cell formula.
=RApply("rfun",A1)
would apply the R function rfun to the value in cell A1.
If the value in A1 changes, Excel will force R to recalculate the formula.

There is a (half hour long) video demo about RExcel
at http://rcom.univie.ac.at/RExcelDemo/

http://rcom.univie.ac.at/ has more information about the project.
For recent information, visit the Wiki on this site.

This site also has the alpha version of an OpenOffice add-in
giving roughly the same functionality.
It is available at
http://rcom.univie.ac.at/download/ROOo/


The main source of information about this project is
the mailing list. You can subscribe also via the project server,
http://rcom.univie.ac.at
ohri2007 at gmail.com wrote:

  
    
#
Can't you just set a link to our server?
I do not know how to embed it.
I used Camtasia to produce this video, and it
does all the embedding.
Ajay ohri wrote: