[Rpy] How to use modified R function, Python does not see it?

2011-11-28 Thread Marko Limbek
Hi, I have a problem using a modified R function. In R I get it as function_mod = package:::function and fix(function_mod) and use it normally, however when I want to use it in Python RPy (I use Eclipse), it doesn't see it. That is somehow expected because Python RPy imports the R packages itself

Re: [Rpy] From matrices to data.frames and vice versa

2011-11-28 Thread Luca Beltrame
In data lunedì 28 novembre 2011 14:51:29, Laurent Gautier ha scritto: > > then it would not matter, however (at least IMO). > Unless you have reason, you should avoid repeatedly calling "importr()" I'll try to use the KISS approach you proposed for the matrix conversion (I assume that similarly,

Re: [Rpy] From matrices to data.frames and vice versa

2011-11-28 Thread Laurent Gautier
On 2011-11-28 14:36, Luca Beltrame wrote: In data lunedì 28 novembre 2011 14:31:57, Laurent Gautier ha scritto: def as_dataframe(m): assert(isinstance(m, Matrix)) # since we did test that this is a Matrix # we may as well skip R's dispatch system res = base.as_data_frame

Re: [Rpy] From matrices to data.frames and vice versa

2011-11-28 Thread Luca Beltrame
In data lunedì 28 novembre 2011 14:31:57, Laurent Gautier ha scritto: > def as_dataframe(m): > assert(isinstance(m, Matrix)) > # since we did test that this is a Matrix > # we may as well skip R's dispatch system > res = base.as_data_frame_matrix(m) > return res At least

Re: [Rpy] From matrices to data.frames and vice versa

2011-11-28 Thread Laurent Gautier
On 2011-11-28 14:07, Luca Beltrame wrote: In data sabato 26 novembre 2011 06:53:48, Laurent Gautier ha scritto: Currently, the constructor to DataFrame accepts a "tlist" ("tagged list") as a main parameter. The idea was to be relying on duck-typing, Currently in fact I've been hitting some wal

Re: [Rpy] From matrices to data.frames and vice versa

2011-11-28 Thread Luca Beltrame
In data sabato 26 novembre 2011 06:53:48, Laurent Gautier ha scritto: > Currently, the constructor to DataFrame accepts a "tlist" ("tagged > list") as a main parameter. The idea was to be relying on duck-typing, Currently in fact I've been hitting some walls regarding that. I assume that the low