It works like Barry told me to do. Thanks a lot for your time :)
Lore.
> Date: Wed, 27 Feb 2008 12:24:53 +0100> From: [EMAIL PROTECTED]> To:
> rpy-list@lists.sourceforge.net> Subject: Re: [Rpy] package : survival> >
> 2008/2/27, Lore Merdrignac <[EMAIL PROTECTED]&g
THANKS !
:D
It works, thanks a lot.
> Date: Wed, 27 Feb 2008 11:22:34 +> From: [EMAIL PROTECTED]> To:
> rpy-list@lists.sourceforge.net> Subject: Re: [Rpy] package : survival> > Lore
> Merdrignac wrote:> > Thanks for answering. I had already tested to
): File "",
>>> line 1, in ?NameError: name 'sf' is not defined
Lore.
> Date: Wed, 27 Feb 2008 11:48:12 +0100> From: [EMAIL PROTECTED]> To:
> rpy-list@lists.sourceforge.net> Subject: Re: [Rpy] package : survival> >
> 2008/2/27, Lore Merdrignac
Hi,
I have already posted a first problem of "NO_CONVERSION" with the package
SURVIVAL. But I still have a problem by using the function survfit() of the
package.
Here is the code :
>>> from rpy import *>>> r.library("survival")>>>
>>> set_default_mode(NO_CONVERSION)>>> d=r.rep(1,41)>>> t=r.c
): File
>>> "", line 1, in ?RPy_RException: Erreur dans parse(text =
>>> paste(deparse(call[[2]]), 1, sep = "~")) : unexpected numeric constant
>>> dans :"structure(c(6L, 6L, 6L, 6L, 6L, 9L, 9L, 9L, 12L, 12L, 12L, 12L,
>>> ~112L"
> Date: Thu, 21 Feb 2008 15:03:52 +0100> From: [EMAIL PROTECTED]> To:
> rpy-list@lists.sourceforge.net> Subject: Re: [Rpy] help with the package
> survival> > May be importing rpy with> > import rpy> > does help ?> > > > > >
> 2008/2/2
> Date: Thu, 21 Feb 2008 14:48:10 +0100> From: [EMAIL PROTECTED]> To:
> rpy-list@lists.sourceforge.net> Subject: Re: [Rpy] help with the package
> survival> > 2008/2/21, Lore Merdrignac <[EMAIL PROTECTED]>:> >> > > Date:
> Thu, 21 Feb 2008 08:
> Date: Thu, 21 Feb 2008 08:16:10 -0500> From: [EMAIL PROTECTED]> To:
> rpy-list@lists.sourceforge.net> Subject: Re: [Rpy] help with the package
> survival> > On Thu, Feb 21, 2008 at 8:08 AM, Lore Merdrignac <[EMAIL
> PROTECTED]> wrote:> >> > Hi,&g
Hi,
I have a problem with the package "survival" in rpy. I have to use the function
survit() , and it works with R but not by calling R from python with rpy :
>>> ss=r.survfit(s,weights=pds)Traceback (most recent call last): File
>>> "", line 1, in ?RPy_RException: Erreur dans
>>> UseMethod("