Re: [Rpy] Substituting items in rpy2, R-style

2011-07-26 Thread Laurent Gautier
Hi, This is probably a bug. Can you report it so it does not get lost between now and the next time slot I have to look at it ? Thanks, Laurent PS: self-contained examples makes it easier to reproduce the problem On 2011-07-26 17:28, Luca Beltrame wrote: Hello, I'm trying to do the follo

[Rpy] Substituting items in rpy2, R-style

2011-07-26 Thread Luca Beltrame
Hello, I'm trying to do the following in R mydataframe[mydataframe == 0] <- NA However, if I try to do the following in Python, with rpy2 mydataframe.rx[mydataframe.ro == 0] = robjects.NA_Logical I get a RRuntimeError: Error in is.atomic(value): 'value' is missing Is it a bug or am I doing s