Thank you so much! Everything seems to work now. I did not understand that the difference between rpy and rpy2 was so big, I thought that they were just different versions of the same tool. Now I will use the correct documentation for rpy2.
Cheers, Eva -----Original Message----- From: Mark Larsen [mailto:larsen...@gmail.com] Sent: den 4 januari 2010 19:04 To: RPy help, support and design discussion list Subject: Re: [Rpy] rpy in Windows, how to get started? > What is wrong? Eva, Make sure you are reading these docs for rpy2 here: http://rpy.sourceforge.net/rpy2/doc/html/introduction.html#getting-started And not the ones for rpy, they are very different implementations. (IMHO, I'd stick with rpy2 over rpy). You want this: from rpy2 import robjects values = [robjects.r.dchisq(x, 4) for x in robjects.r.seq(0, 10, by=0.1)] This will return a list of RVectors objects. To get them back to numbers try, values = [i[0] for i in values] Mark ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list