I'm attempting to read in data from a .json file using jsonlite, and replace all NULL values with NA.
I'm using this code:
business <- stream_in(file("data/yelp_academic_dataset_business.json"), nullValue = NA)
And get this error
opening fileconnectionoldClass input connection.
Found 500 lines...
Error in simplify(lapply(page, parseJSON), ...) :
unused argument (nullValue = NA)
closing fileconnectionoldClass input connection.
According to ?stream_in I should be able to pass arguments for fromJSON in the ... section of the function call, but stream_in isn't accepting nullValue.
Any recommendations?