Hi, I'm just starting to use both R and rpy and both look like they will be a great help to my research. Many thanks to the developers for all their work.
My question is: is there a way of making rpy automatically convert its return values into numpy arrays, or does one have to do this manually from the lists returned? I am using the latest version of rpy checked out with svn today, R version 2.4.1 and numpy 1.0.1. For example, I currently seem to have to do: s = r.seq(1, 10) s = numpy.asarray(s) or x = numpy.random.normal(0.0, 1.0, 100) hist_x = r.hist(x, plot=False) # note my setup seems perfectly happy being passed numpy arrays breaks = numpy.asarray(hist_x['breaks']) counts = numpy.asarray(hist_x['counts']) While this isn't particularly inconvenient, is there any easy way I can make it so all I have to do is: s = r.seq(1, 10) or x = numpy.random.normal(0.0, 1.0, 100) hist_x = r.hist(x, plot=False) breaks = hist_x['breaks'] counts = hist_x['counts'] Thanks in advance, Steven. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list