> 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