We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
na
fromJSON
Most R import/export data tools have the ability to customize the NA strings. It would be neat if jsonlite did this too.
jsonlite
I'd imagine something like
fromJSON('["a", "b", "."]', na = ".") # "a" "b" NA
For consistency, the way the na argument in toJSON would also need to be modified to allow
toJSON
toJSON(c("a", "b", NA), na = ".") # ["a","b","."]
I got the idea from some guy's SO post.
I could probably fork, modify, and submit a pull request in the next week or two if you're interested.
The text was updated successfully, but these errors were encountered:
I am having a related problem.
I'm reading a JSON string that contains the strings "NA" - and I need them to remain as character class, not R's reserved NA value.
If the above is implemented, and I could specify na=NULL to have no JSON string values convert to NAs, that would be useful.
Sorry, something went wrong.
Added naStrings option to 'null_to_na()' and precessors. Addresses je…
42cf51f
…roen#98 and jeroen#314
No branches or pull requests
Most R import/export data tools have the ability to customize the NA strings. It would be neat if
jsonlite
did this too.I'd imagine something like
For consistency, the way the
na
argument intoJSON
would also need to be modified to allowI got the idea from some guy's SO post.
I could probably fork, modify, and submit a pull request in the next week or two if you're interested.
The text was updated successfully, but these errors were encountered: