[Rcom-l] Saving Object

2007-09-18 Thread David Montgomery
Hello, I am using Python 2.5 and R 2.5.1 on windows XP. >From Python, I am trying to save an object using the following code. df_tree >is a randomForest object from the R packages. path="C:\\Documents and Settings\\dmontgomery\\My Documents\\iris_data" psave="save(df_tree.rf,file=\"" + p

[Rcom-l] Simple Regression Test

2007-09-13 Thread David Montgomery
Hi, I am using Python 2.5 and R2.5.1 I am trying to do a simple test using the Iris data set and a regression. Here is my code from win32com.client import Dispatch r=Dispatch("StatConnectorSrv.StatConnector") r.Init("R") r.Evaluate("data(iris)") r.Evaluate("iris.lm <- lm(Sepal.Length ~ S

[Rcom-l] Passing array from python to R

2007-09-12 Thread David Montgomery
Hi, I am new to Rcom I have a 2D matrix array in python that I would like to pass to R so I can use the array for a regression. What is the code that I would use? I am using Python 2.5 and R2.5.1 on windows vista as an FYI Thanks, David_