read_dataset_json {datasetjson} | R Documentation |
Read a Dataset JSON to datasetjson object
Description
This function validates a dataset JSON file against the Dataset JSON schema, and if valid returns a datasetjson object. The Dataset JSON file can be either a file path on disk of a URL which contains the Dataset JSON file.
Usage
read_dataset_json(file)
Arguments
file |
File path or URL of a Dataset JSON file |
Value
datasetjson object
Examples
# Read from disk
## Not run:
dat <- read_dataset_json("path/to/file.json")
dat <- dataset_json('https://www.somesite.com/file.json')
## End(Not run)
# Read from an already imported character vector
ds_json <- dataset_json(iris, "IG.IRIS", "IRIS", "Iris", iris_items)
js <- write_dataset_json(ds_json)
dat <- read_dataset_json(js)
[Package datasetjson version 0.2.0 Index]