Re: [Rpy] Rpy and dot names

2011-04-15 Thread Warnes, Gregory R.
The issue is probably that your surv_time variable is being translated 'back' into a python object. Try changing the conversion mode to NO_CONVERSION and explicitly requesting conversion when you need to access the results in python. I.E. import rpy rpy.set

Re: [Rpy] Rpy and dot names

2011-04-15 Thread Anamaria Crisan
> I have one more point I would like to add. > > When I run all of the code in R, it works just fine. If I make a small > python file with exactly the code I ran in R, it gives me the 'not all > arguments have the same length' error. I will continue to check my code, but > I am suspicious that its

Re: [Rpy] Rpy and dot names

2011-04-15 Thread Peter
On Fri, Apr 15, 2011 at 4:56 PM, Anamaria Crisan wrote: > I am using just Rpy. Would RPy2 be the solution? > Possibly - and in the long term it would be worth looking at, but there are quite a few API changes to beware of. Back in rpy (v1), to run an R command like: cindex(x=prob, surv.time=sur

Re: [Rpy] Rpy and dot names

2011-04-15 Thread Anamaria Crisan
I am using just Rpy. Would RPy2 be the solution? On Fri, Apr 15, 2011 at 2:30 AM, Peter wrote: > On Fri, Apr 15, 2011 at 1:08 AM, Anamaria Crisan wrote: > > Hello, > > I am trying to use RPy to run an R package called survcomp. One of the > > methods takes in the variable name surv.time. For exa

Re: [Rpy] Rpy and dot names

2011-04-15 Thread Peter
On Fri, Apr 15, 2011 at 1:08 AM, Anamaria Crisan wrote: > Hello, > I am trying to use RPy to run an R package called survcomp. One of the > methods takes in the variable name surv.time. For example, I can run it as > follows: > cindex(x=prob,surv.time=survTIME, surv.even=survEVENT) in R (where x,