pathling_read_datasets | R Documentation |
Creates an immutable, ad-hoc data source from a named list of Spark datasets indexed with resource type codes.
pathling_read_datasets(pc, resources)
pc |
The PathlingContext object. |
resources |
A name list of Spark datasets, where the keys are resource type codes and the values are the data frames containing the resource data. |
A DataSource object that can be used to run queries against the data.
Pathling documentation - Reading datasets
Other data source functions:
pathling_read_bulk()
,
pathling_read_bundles()
,
pathling_read_delta()
,
pathling_read_ndjson()
,
pathling_read_parquet()
,
pathling_read_tables()
## Not run:
patient_df <- pc %>% pathling_example_resource('Patient')
condition_df <- pc %>% pathling_example_resource('Condition')
data_source <- pc %>% pathling_read_datasets(list(Patient = patient_df, Condition = condition_df))
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.