Re: [Rpy] How can I append a vector to a matrix when the vector has more rows than the matrix?

2012-02-28 Thread Laurent Gautier
There is no "cbind.na" in a vanilla R install. May be this is a function coming with a package and it should be loaded because the function can be found by R ? L. PS: I am not certain about the intent behind trying to "append a vector to a matrix when they have a different number of rows".

Re: [Rpy] How can create a R function which have two or more parameters?

2012-02-28 Thread Fangyu He
Hi everyone, I want to create a R function which can be used as a parameter in the function "outer", I tried the rternalize way which expose python function to R. However, it doesn't work, the following being the problems which I encountered. import rpy2.rinterface as ri seq = ri.glo

Re: [Rpy] Adding columns to DataFrames

2012-02-28 Thread Laurent Gautier
On 2012-02-24 09:55, Luca Beltrame wrote: Hello, in an effort to create a conversion between pandas objects[1] and R's data.frames, This would be handy. A common interface ("protocol" in the Python lingo) would allow duck typing. I'm trying to add columns to an empty DataFrame. Python c