pathling_read_ndjson | R Documentation |
Creates a data source from a directory containing NDJSON files. The files must be named with the resource type code and must have the ".ndjson" extension, e.g. "Patient.ndjson" or "Observation.ndjson".
pathling_read_ndjson(pc, path, extension = "ndjson", file_name_mapper = NULL)
pc |
The PathlingContext object. |
path |
The URI of the directory containing the NDJSON files. |
extension |
The file extension to use when searching for files. Defaults to "ndjson". |
file_name_mapper |
An optional function that maps a filename to the set of resource types that it contains. Currently not implemented. |
A DataSource object that can be used to run queries against the data.
Pathling documentation - Reading NDJSON
Other data source functions:
pathling_read_bulk()
,
pathling_read_bundles()
,
pathling_read_datasets()
,
pathling_read_delta()
,
pathling_read_parquet()
,
pathling_read_tables()
## Not run:
data_source <- pc %>% pathling_read_ndjson(pathling_examples('ndjson'))
data_source %>% ds_read('Patient') %>% sparklyr::sdf_nrow()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.