-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto casting in rbind_all #493
Comments
Also for this case you can get it to work (with a cast from factor to character) if you specify the character form of NA.
This would be nice to special case, this situation probably happens fairly often in practice (anytime a calculation over a given group returns NA) Also your example is missing a comma in between the data frame observations. |
I have the same request. Below is my minimally reproducible example. If I pass only NA, it gives an error. But if I cast the NA to NA_character_ it works as desired.
|
@romainfrancois I think we discussed this in another issue - this one has convinced me that we should allow a vector containing only |
Just added a test for "are all these values
And do nothing in that case because values are already NA :
|
I don't think this fully works:
|
The following works in
plyr
, it would be great to get it to work indplyr
as well.Some context: such data often appear when parsing
json
, in which anull
might becomeNA
. For example:The text was updated successfully, but these errors were encountered: