On Fri, Apr 15, 2011 at 4:56 PM, Anamaria Crisan <a...@genomedx.com> 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=survTIME, surv.even=survEVENT)

you should (as I recall) switch the dots to underscores in Python
for argument names etc:

cindex(x=prob, surv_time=survTIME, surv_even=survEVENT)

This is because dots are used in Python to access the methods
and attributes of an object. Argument names can't have dots,
that is what the SyntaxError is trying to tell you.

The fact you then get an "not all arguments have the same length"
suggests there is a secondary problem in your script. I'm not
familiar with the R package survcomp so I can't really guess.

Peter

------------------------------------------------------------------------------
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