Read a Dataset JSON Compressed (DSJC) file to a datasetjson object
Source:R/dsjc.R
read_dataset_dsjc.RdReads the compressed representation of Dataset JSON: a zLib stream holding
Dataset NDJSON content. The object returned is the same one
read_dataset_json() and read_dataset_ndjson() return for the equivalent
uncompressed file, metadata attributes included.
Examples
# Read one of the example files shipped with the package
dm <- read_dataset_dsjc(datasetjson_example("dm.dsjc"))
# Or from bytes held in memory
ds_json <- dataset_json(
iris,
item_oid = "IG.IRIS",
name = "IRIS",
dataset_label = "Iris",
columns = iris_items
)
dat <- read_dataset_dsjc(write_dataset_dsjc(ds_json))