Assigning to GlobalEnv does not seem to be required.
With rpy2-2.2.0dev, a standalone example can be like:
import rpy2.interactive as r
r.importr('survcomp')
# set up the stage (omitted from earlier code snippet)
age = r.packages.stats.rnorm(100, 50, 10)
sex = r.packages.base.sample(r.IntVector
>
> Hello!
>
> I solved this problem(finally!) and thought I would put up the solution if
> anyone was interested. The only thing that's left is converting my output to
> a dictionary...which I am still working on.
>
> Here's what it looked like:
>
> from numpy import *
> from scipy import *
> from
On Mon, Apr 18, 2011 at 5:24 PM, Anamaria Crisan
wrote:
> Hi,
> I've tried changing the conversion mode as suggested, however it will die at
> the r_result = cindex(x=prob, surv_time=survTIME, surv_even=survEVENT)
> line. I don't know how often R methods have var.name , but if someone else
> has
>
> Hi,
>
> I've tried changing the conversion mode as suggested, however it will die
> at the r*_result = **cindex(x=prob, surv_time=survTIME,
> surv_even=survEVENT)* line. I don't know how often R methods have
> var.name , but if someone else has successfully run such a method before
> that wou