stream_in | R Documentation |
data.table
Given a file of streaming JSON (ndjson) this function reads in the records
and creates a flat data.table
/ tbl
from it.
stream_in(path, cls = c("dt", "tbl"))
path |
path to file (supports " |
cls |
the package uses |
data.table
or tbl
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.