[Rpy] Sink function / Write R to file in python

2013-03-14 Thread David Haynes
Hello, I have a general question about writing outputs to a file. Specifically I am using the lme function in R to generate a model. The print r.summary(model) function works fine. However, I would like to capture that in a text file. Right now the error I receive is this. ValueError: Buffer for

[Rpy] Rpy2 dataframe question

2013-02-23 Thread David Haynes
Hello, I have a question about using a dataframe in the R function (lme) This is the r function I am trying to run r.lme("gpr ~ 1, random =~1 | groups, weights") This is the summary of the code. import rpy2 import rpy2.robjects as robjects r = robjects.r r.library('nlme') d = {'id': robjects.In

Re: [Rpy] question, problem with arguments in r function

2011-12-01 Thread David Haynes
I am running windows 7, python 2.5, r 2.12 and I found the proper rpy2 install package rpy2-2.0.3.win32-py2.5.exethere is also an msi package. I successfully install the library and I can import the library "i