> >>> import rpy
> >>> dir()
> ['__builtins__', '__doc__', '__name__', '__package__', 'numpy', 'rpy', 'sys']
> 
> It seems like it loads, throws no errors , and the install seemed clean
> But it cannot find the function r.
> see below:
> >>> values = [r.dchisq(x, 4) for x in r.seq(0, 10, by=0.1)]
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'r' is not defined

Do this instead:

>>> from rpy2.robjects import r
>>> d = r.dchisq(r.seq(0, 10, by=0.1), 4)
>>> max(d)
0.18393972058572117

Regards,

- Daniel

=====================

Daniel S. Yuan, M.D., Sc.M.
Research Associate
Department of Molecular Biology and Genetics
Johns Hopkins University School of Medicine
733 N. Broadway, Suite 351
Baltimore, MD  21205-1832



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to