powered by
tbl_dt
Given a file of streaming JSON (ndjson) this function reads in the records and creates a flat data.table / tbl_dt from it.
data.table
stream_in(path)
path to file (supports "gz" files)
gz
http://ndjson.org/
f <- system.file("extdata", "test.json", package="ndjson") nrow(stream_in(f)) gzf <- system.file("extdata", "testgz.json.gz", package="ndjson") nrow(stream_in(gzf))
Run the code above in your browser using DataLab