Re: [Rpy] Rpy2 dataframe question

2013-02-23 Thread Laurent Gautier
Hi, You should separate parameters like you would do it for a regular function call and use the class Formula. from rpy2.robjects import Formula r.lme(Formula("gpr ~1"), random = Formula("~1 ...")) On Feb 24, 2013 6:32 AM, "David Haynes" wrote: > Hello, > > I have a question about using a dataf

[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