On 17 May 2011 14:53, Artur Wroblewski <wrob...@pld-linux.org> wrote:
> R returns vector for pi number.
More generally, in R, you always work with vectors. So even if you give it
the expression "2", it treats it as a vector of length 1.
As for attribute access, robjects.r.pi already works for me. You can easily
say "r = robjects.r" if you want to save some typing.
The difference between robjects.r(...) and robjects.r[...] is that [...]
simply looks up a name, while (...) evaluates an expression. So
robjects.r("pi + 1")
works, but
robjects.r["pi + 1"]
throws a lookup error.
Thomas
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list