You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a recent version NA values were set to write as NULL (see #44). This seem problematic to me.
when you read the data back bson NULL is converted back to R NULL which means you cannot use mongo.find.all with data.frame=TRUE because you cannot have NULL in your data.frame (length zero). Is there not a more proper bson NA? What was wrong with nan?
The text was updated successfully, but these errors were encountered:
NaN - standing for not a number, is a numeric data type. And it is numeric type in mongodb too... The nearest analogue R's NA_* family is mongodb's null.
I think we can to try to convert mongodb's null to R's NA (add option like null_to_NA = TRUE). What do you think?
A flag to convert NULL to NA would be nice, I've run into this issue where values that were NA in R were written as NULL in mongo, and read back in as NULL in R. As mentioned above, this causes data.frame=TRUE to fail.
In a recent version NA values were set to write as NULL (see #44). This seem problematic to me.
when you read the data back bson NULL is converted back to R NULL which means you cannot use mongo.find.all with data.frame=TRUE because you cannot have NULL in your data.frame (length zero). Is there not a more proper bson NA? What was wrong with nan?
The text was updated successfully, but these errors were encountered: