Re: [Rpy] Replacement operations in matrices and data frames

2011-04-07 Thread Laurent
On 07/04/11 08:36, Luca Beltrame wrote: > In data giovedì 7 aprile 2011 07:23:41, Laurent ha scritto: > >> rpy2-2.2.x is believed to be more convenient to use. I can only >> encourage to already use it instead of 2.1.9. > > Are there any API incompatibilities with 2.1.x or is it a drop-in replaceme

Re: [Rpy] Replacement operations in matrices and data frames

2011-04-06 Thread Luca Beltrame
In data giovedì 7 aprile 2011 07:23:41, Laurent ha scritto: > rpy2-2.2.x is believed to be more convenient to use. I can only > encourage to already use it instead of 2.1.9. Are there any API incompatibilities with 2.1.x or is it a drop-in replacement? -- Luca Beltrame, Ph.D. - Translational Gen

Re: [Rpy] Replacement operations in matrices and data frames

2011-04-06 Thread Laurent
On 05/04/11 12:24, Luca Beltrame wrote: > In data martedì 5 aprile 2011 12:11:09, Moritz Beber ha scritto: > >> I'm almost convinced there must be a better way but I haven't found one yet. > > According to what I found in the documentation, it is possible in rpy 2.2 but > not in 2.1.x. Laurent, am

Re: [Rpy] Replacement operations in matrices and data frames

2011-04-05 Thread Luca Beltrame
In data martedì 5 aprile 2011 12:11:09, Moritz Beber ha scritto: > I'm almost convinced there must be a better way but I haven't found one yet. According to what I found in the documentation, it is possible in rpy 2.2 but not in 2.1.x. Laurent, am I correct? -- Luca Beltrame, Ph.D. - Translation

Re: [Rpy] Replacement operations in matrices and data frames

2011-04-05 Thread Moritz Beber
On 04/05/2011 11:36 AM, Luca Beltrame wrote: > Hello, > > I'm trying to find a way to replace columns in matrices and data frames. For > a > data frame, the equivalent in R would be: > > mydataf$Column <- some_vector > > How can this be done from rpy2 (2.1.9), given that rx2() is a function and

[Rpy] Replacement operations in matrices and data frames

2011-04-05 Thread Luca Beltrame
Hello, I'm trying to find a way to replace columns in matrices and data frames. For a data frame, the equivalent in R would be: mydataf$Column <- some_vector How can this be done from rpy2 (2.1.9), given that rx2() is a function and thus can't be used for assignments? Thanks in advance. --