[R] Excel calling R functions

2007-06-01 Thread Horace Tso
Hi folks, Is it possible to have Excel call a R function. If not, how about making Excel send off a command to call a R script and then read the result back into Excel. I know, I know, this should belong to some Excel forum, but i just try my luck here. Thanks in advance. Horace W. Tso

Re: [R] Excel calling R functions

2007-06-01 Thread Charles Annis, P.E.
You might consider having R do everything: R can read the Excel sheet, do what needs to be done, and write the results to an Excel sheet. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From

Re: [R] Excel calling R functions

2007-06-01 Thread Horace Tso
PROTECTED] 6/1/2007 9:03:20 AM You might consider having R do everything: R can read the Excel sheet, do what needs to be done, and write the results to an Excel sheet. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com

Re: [R] Excel calling R functions

2007-06-01 Thread Marc Schwartz
On Fri, 2007-06-01 at 08:50 -0700, Horace Tso wrote: Hi folks, Is it possible to have Excel call a R function. If not, how about making Excel send off a command to call a R script and then read the result back into Excel. I know, I know, this should belong to some Excel forum, but i just

Re: [R] Excel calling R functions

2007-06-01 Thread Alberto Monteiro
Horace Tso wrote: Is it possible to have Excel call a R function. If not, how about making Excel send off a command to call a R script and then read the result back into Excel. I know, I know, this should belong to some Excel forum, but i just try my luck here. You can always put R

Re: [R] Excel calling R functions

2007-06-01 Thread Tobias Verbeke
Marc Schwartz wrote: On Fri, 2007-06-01 at 08:50 -0700, Horace Tso wrote: Hi folks, Is it possible to have Excel call a R function. If not, how about making Excel send off a command to call a R script and then read the result back into Excel. I know, I know, this should belong to some

Re: [R] Excel calling R functions

2007-06-01 Thread Duncan Temple Lang
for things like Excel actions to be written as R functions Tobias Verbeke wrote: Marc Schwartz wrote: On Fri, 2007-06-01 at 08:50 -0700, Horace Tso wrote: Hi folks, Is it possible to have Excel call a R function. If not, how about making Excel send off a command to call a R script and then read

Re: [R] Excel calling R functions

2007-06-01 Thread Horace Tso
the language independent spirit of DCOM. And it also allows event handlers for things like Excel actions to be written as R functions Tobias Verbeke wrote: Marc Schwartz wrote: On Fri, 2007-06-01 at 08:50 -0700, Horace Tso wrote: Hi folks, Is it possible to have Excel call a R function

Re: [R] Excel to R

2006-07-17 Thread Petr Pikal
at 11:50, Bernardo Rangel tura wrote: Date sent: Sat, 15 Jul 2006 11:50:14 -0300 To: R-help@stat.math.ethz.ch From: Bernardo Rangel tura [EMAIL PROTECTED] Subject:[R] Excel to R Hi peolple! I have a many excel tables

Re: [R] Excel to R

2006-07-17 Thread Michael A. Miller
Bernardo == Bernardo Rangel tura [EMAIL PROTECTED] writes: Well I use this scripts to import the database require(RODBC) channel - odbcConnectExcel(f:/teste.xls) data - sqlFetch(channel, Sheet1) Just convert qw to a factor: require(RODBC) channel -

[R] Excel to R

2006-07-15 Thread Bernardo Rangel tura
Hi peolple! I have a many excel tables with mode than 100 variables. And I want use R to analize that. But I have a problem, a group of this variables (more than 50) in any table is a factor and other part is a number. Tha factors variables have tha values enconde this form (1=Yes,2=No and

Re: [R] Excel to R

2003-10-22 Thread Duncan Temple Lang
) z - odbcConnectExcel(C:/myspread.xls) z.df - sqlFetch(z,Sheet1) close(z) but the comments interfere with this. I don't want to manually delete the rows but want the entire process from Excel file to R to be automatic. I can accomplish this with a free utility, Baird's dataload

[R] Excel to R

2003-10-21 Thread Gabor Grothendieck
without comments I have had success with: require(RODBC) z - odbcConnectExcel(C:/myspread.xls) z.df - sqlFetch(z,Sheet1) close(z) but the comments interfere with this. I don't want to manually delete the rows but want the entire process from Excel file to R to be automatic. I can accomplish

Re: [R] Excel to R

2003-10-21 Thread Dirk Eddelbuettel
but want the entire process from Excel file to R to be automatic. I can accomplish this with a free utility, Baird's dataload that I found on the net. This will convert the Excel files to text and then the text can be processed using R to locate the start of the header and only process