Skip to content

Handle missing input consistently#261

Open
MichaelChirico wants to merge 1 commit into
jeroen:masterfrom
MichaelChirico:null_json
Open

Handle missing input consistently#261
MichaelChirico wants to merge 1 commit into
jeroen:masterfrom
MichaelChirico:null_json

Conversation

@MichaelChirico

@MichaelChirico MichaelChirico commented Oct 16, 2018

Copy link
Copy Markdown
Contributor

Closes #211

This allows the following syntax to work without error:

DF = data.frame(json = c('{"hey": 1, "you": 2}', NA_character_, '{"hey": 3, "you": 4}', stringsAsFactors = FALSE)
do.call(rbind, lapply(DF$json, fromJSON))
#    hey you
# 2    1   2
# 21   3   4

@MichaelChirico MichaelChirico changed the title Closes #211 -- handle missing input consistently Handle missing input consistently Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fromJSON is.na check is incomplete

1 participant