Re: [Rpy] newbie questions

2011-05-17 Thread Thomas Kluyver
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 "

Re: [Rpy] newbie questions

2011-05-17 Thread Artur Wroblewski
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 --