Re: [Rpy] Error installing rpy2 on mac os x 10.6.8

2012-06-28 Thread Yair Benita
Hi Laurent, Thanks for the info. I will investigate it further and report. My apologies for dropping the list - I didn't realize I did that. Back online now. Best, Yair On Jun 28, 2012, at 5:10 PM, Laurent Gautier wrote: > On 2012-06-28 21:20, Yair Benita wrote: >> Hi Laurent, >> Thanks for th

[Rpy] iterating data frame rows

2012-06-28 Thread Artur Wroblewski
Hi, Please consider the following: from rpy2 import robjects as ro df = ro.DataFrame({'a': ro.FloatVector((5,2,3)), 'b': ro.StrVector(['x1-','y2-','z3-'])}) v = ((r.rx2('a')[0], r.rx2('b')[0]) for r in df.iter_row()) print(list(v)) The result is [(5.0, 1), (2.0, 1), (3.0, 1

Re: [Rpy] Error installing rpy2 on mac os x 10.6.8

2012-06-28 Thread Laurent Gautier
On 2012-06-28 07:21, Yair Benita wrote: > Hi All, > I am trying to install rpy2 (2.2.6) on mac os x 10.6.8 with python 2.7 and R > 2.14.1. > I think all my env variables are correct but I still get the underlying > error. I think I previously solved it by forcing it to compile with arch > x86_