I am using just Rpy. Would RPy2 be the solution?

On Fri, Apr 15, 2011 at 2:30 AM, Peter <rpy-l...@maubp.freeserve.co.uk>wrote:

> On Fri, Apr 15, 2011 at 1:08 AM, Anamaria Crisan <a...@genomedx.com> 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,
> > suvr.time and surv.event are predefined variable names from the package).
> > However I get an error in python.
> >  If I leave the synatx as surv.time I get the following
> error: SyntaxError:
> > keyword can't be an expression.
> > If I change surv.time to surv_time I get a new error: not all arguments
> have
> > the same length. Which I checked and as far as I can tell all inputs do
> have
> > the same length.
> > I know the problem is the dot in surv.time variable. I wonder, can Rpy
> work
> > when there is  dot in the variable name, does R know how to translate it?
> > Any help is much appreciated,
>
> Which version of rpy or rpy2 are you using?
>
> Peter
>



-- 
Anamaria Crisan
Medical Genomics Research Associate
GenomeDx Biosciences Inc. | 201-1595 W. 3rd Ave, Vancouver, BC V6J 1J8
Off: 604-568-7570 | Fax: 866-505-5161
ana <http://goog_1098469627>@genomedx.com
www.genomedx.com
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to