On 17 May 2011 14:53, Artur Wroblewski 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 "
On Tue, May 17, 2011 at 2:41 PM, Massimo Di Pierro
wrote:
[...]
> 3) I understand that robjects.r['pi'] returns a vector of one element. Is
> this an R "feature" or an rpy2 feature?
R returns vector for pi number.
Best regards,
Artur
--
Hello everybody,
First of all thanks for your work on Rpy2. I have some questions and I could
not find answers in the manual.
1) What is the difference between
robjects.r[...]
and
robjects.r(...)
2) why not
class R(object):
def __getattr__(self,name): return robjects.r[name]