Re: [Rpy] matrix problem with rpy 1.0.3

2009-06-03 Thread Peter
On Wed, Jun 3, 2009 at 2:21 PM, Axel Kowald wrote: > > >> rpy.set_default_mode(rpy.NO_CONVERSION) >> > Okay, that is working ! > Although I thought that r.is_matrix(r.as_matrix(erg)) should take care > of that. I can see why you tried this, but it doesn't do what you hoped for. This is equivalent

Re: [Rpy] matrix problem with rpy 1.0.3

2009-06-03 Thread Axel Kowald
> rpy.set_default_mode(rpy.NO_CONVERSION) > Okay, that is working ! Although I thought that r.is_matrix(r.as_matrix(erg)) should take care of that. Anyway, many thanks, Axel -- OpenSolaris 2009.06 is a cutting ed

Re: [Rpy] matrix problem with rpy 1.0.3

2009-06-03 Thread Peter
On Wed, Jun 3, 2009 at 1:52 PM, Axel Kowald wrote: > > Hi everybody, > > I'm using rpy 1.0.3 and R 2.7.0 under win XP and I have a problem to > produce an R matrix from python. > Here I'm creating a matrix and then test if the created object is indeed > a matrix. Unfortunately, I always get False

[Rpy] matrix problem with rpy 1.0.3

2009-06-03 Thread Axel Kowald
Hi everybody, I'm using rpy 1.0.3 and R 2.7.0 under win XP and I have a problem to produce an R matrix from python. Here I'm creating a matrix and then test if the created object is indeed a matrix. Unfortunately, I always get False :-( >>> erg = r.matrix(0.0,nrow=2,ncol=3) >>> erg [[0.0, 0.0