On Thu, Apr 9, 2009 at 10:08 AM, Warnes, Gregory R.
<[email protected]> wrote:
> Instead of
> oneway = robjects.r['oneway.test']
> test = oneway("values ~ ind, data=d, var.equal=TRUE")
> try this:
> test = robjects.r['oneway.test(values ~ ind, data=d, var.equal=TRUE)']
Typo: should use () here, not []:
test = robjects.r('oneway.test(values ~ ind, data=d, var.equal=TRUE)')
(r[] means "lookup an object with this name", r() means "execute this
line of code")
> or
> oneway = robjects.r['oneway.test']
> test = oneway("values ~ ind", data=d, var.equal=True)
Also note that if you do things this way, then assigning to r["d"] is
unnecessary -- you're passing the python object named "d", not telling
it to look up an R object named "d".
-- Nathaniel
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list