Re: [Rpy] Handling NAs in data.frames and vectors

2010-01-16 Thread Laurent
A quick update on that point. Silently translating R's NA into values is something I clearly overlooked (as it can lead to hard-to-track problems in someone's code). The following improvements are in the 2.1-dev repository: - the parameter 'as_is' was added to the signature of the method DataFr

Re: [Rpy] Handling NAs in data.frames and vectors

2010-01-15 Thread Laurent Gautier
Hi Luca, Unfortunately this does not seem to be caused by your installation. The problem exists for IntVector, and FactorVector inherits from it. Few features are likely missing from FactorVector, but the good thing is that they already can be implemented simply. Let's take an example: import

[Rpy] Handling NAs in data.frames and vectors

2010-01-15 Thread Luca Beltrame
Hello, in my code, I need to convert the columns from a robjects.DataFrame to other data types (list, for example). Howver, I've found a problem when dealing with data that contains NAs. In particular, I'm referring to non-numeric columns, that are represented as FactorVectors. Example code: