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 =
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[
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
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