I still have the same error ... :(
>>> from rpy import r>>> r.library("survival")Le chargement a nécessité le
>>> package : splines['survival', 'splines', 'stats', 'graphics', 'grDevices',
>>> 'utils', 'datasets', 'methods', 'base']>>>
>>> rpy.set_default_mode(rpy.NO_CONVERSION)Traceback (most recent call last):
>>> File "<interactive input>", line 1, in ?NameError: name 'rpy' is not
>>> defined>>> r.set_default_mode(rpy.NO_CONVERSION)Traceback (most recent call
>>> last): File "<interactive input>", line 1, in ? File
>>> "C:\Python24\Lib\site-packages\rpy.py", line 302, in __getattr__ return
>>> self.__getitem__(name) File "C:\Python24\Lib\site-packages\rpy.py", line
>>> 306, in __getitem__ obj = self.__dict__[name] = self.__dict__.get(name,
>>> self.get(name))RPy_RException: Erreur dans function (x, pos = -1, envir =
>>> as.environment(pos), mode = "any", : variable "set.default.mode"
>>> introuvable
>>> import rpy>>> rpy.set_default_mode(rpy.NO_CONVERSION)>>> d=r.rep(1,41)>>>
>>> t=r.c( r.rep(6,5), r.rep(9,3) , r.rep(12,24), r.rep(15,9) )>>>
>>> r.plot(r.survfit(r.Surv(t,d)))Traceback (most recent call last): File
>>> "<interactive input>", 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 10:35:36 -0500> From: [EMAIL PROTECTED]> To:
> rpy-list@lists.sourceforge.net> Subject: Re: [Rpy] help with the package
> survival> > On Thu, Feb 21, 2008 at 9:19 AM, Lore Merdrignac <[EMAIL
> PROTECTED]> wrote:> >> > ________________________________> > > Date: Thu, 21
> Feb 2008 15:03:52 +0100> >> > It was almost good ! But, since I am really
> lucky, an other error> > appears... There is still an error in the function
> survfit(), in spite of> > the "NO_CONVERSION".> >> > >>> import rpy> >> > >>>
> rpy.set_default_mode(rpy.NO_CONVERSION)> > Do not use this until after doing
> the library() call.> > > >>> from rpy import r> > >>> r.library("survival")>
> > Le chargement a nécessité le package : splines> > <Robj object at
> 0x009FD390>> >> > Place the rpy.set_default_mode(rpy.NO_CONVERSION) HERE and
> see what you get.> > > >>> d=r.rep(1,41)> > >>> t=r.c( r.rep(6,5), r.rep(9,3)
> , r.rep(12,24), r.rep(15,9) )> > >>> r.plot(r.survfit(r.Surv(t,d)))> > Let us
> know how it turns out....> > Sean>
> ------------------------------------------------------------------------->
> This SF.net email is sponsored by: Microsoft> Defy all challenges.
> Microsoft(R) Visual Studio 2008.>
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
> _______________________________________________> rpy-list mailing list>
> rpy-list@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/rpy-list
_________________________________________________________________
Nouveau ! Créez votre profil Messenger !
http://home.services.spaces.live.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list