Re: [Rpy] converting r array to numpy array

2010-10-31 Thread Laurent Gautier
On 01/11/10 07:28, Denham Robert wrote: > I got caught out converting a 3d array in R to a numpy array. I did > something like: > > import numpy > import rpy2 > import rpy2.robjects as robjects > > marr = robjects.r.array(robjects.IntVector(range(54)),dim= > robjects.IntVector([9,2,3])) > marrpy =

[Rpy] converting r array to numpy array

2010-10-31 Thread Denham Robert
I got caught out converting a 3d array in R to a numpy array. I did something like: import numpy import rpy2 import rpy2.robjects as robjects marr = robjects.r.array(robjects.IntVector(range(54)),dim= robjects.IntVector([9,2,3])) marrpy = numpy.array(marr) print marrpy.flatten() print robjects.r[

[Rpy] SF.net SVN: rpy:[790] trunk/htdocs

2010-10-31 Thread lgautier
Revision: 790 http://rpy.svn.sourceforge.net/rpy/?rev=790&view=rev Author: lgautier Date: 2010-11-01 06:42:28 + (Mon, 01 Nov 2010) Log Message: --- news entries + edited layout for the website Modified Paths: -- trunk/htdocs/news.data trunk/htdocs/t

[Rpy] Calling Python functions from R with rpy2

2010-10-31 Thread Laurent Gautier
Hi, It is now possible to perform the sequence: execute Python code that evaluates R code that evaluates Python code. More details and pointers at: http://rpy.sourceforge.net/news.html#%202010-10-31 Laurent -- Nokia