Re: [Rpy] converting r array to numpy array

2010-11-02 Thread Denham Robert
-Original Message- From: Laurent Gautier [mailto:lgaut...@gmail.com] Sent: Tuesday, 2 November 2010 4:49 PM To: Denham Robert Cc: RPy help, support and design discussion list Subject: Re: [Rpy] converting r array to numpy array This is a bug then. The problem is in the way strides are compu

Re: [Rpy] converting r array to numpy array

2010-11-01 Thread Laurent Gautier
2 41 50] > [ 6 15 24 33 42 51] > [ 7 16 25 34 43 52] > [ 8 17 26 35 44 53]] > > > > Regards, Robert > > > > -Original Message- > From: Laurent Gautier [mailto:lgaut...@gmail.com] > Sent: Monday, 1 November 2010 4:58 PM > To: Denham Robert

Re: [Rpy] converting r array to numpy array

2010-11-01 Thread Denham Robert
39 48] [ 4 13 22 31 40 49] [ 5 14 23 32 41 50] [ 6 15 24 33 42 51] [ 7 16 25 34 43 52] [ 8 17 26 35 44 53]] Regards, Robert -Original Message- From: Laurent Gautier [mailto:lgaut...@gmail.com] Sent: Monday, 1 November 2010 4:58 PM To: Denham Robert Cc: RPy help, support and des

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 =