Read metadata-described dataset files
Usage
glc_read(
x,
dataset_id,
file_group = NULL,
files = NULL,
variables = NULL,
terms = NULL,
primary_only = FALSE,
n_max = Inf,
problems = c("error", "warn"),
progress = interactive()
)Arguments
- x
A package opened with
glc_open().- dataset_id
Dataset id or ids. Use
"all"explicitly to read every dataset.- file_group
Optional group index or stable id.
- files
Optional declared paths, resolved paths, or basenames.
- variables
Optional source variable names.
- terms
Optional semantic variable terms.
- primary_only
Select only declared primary variables.
- n_max
Maximum rows read from each file.
- problems
Whether metadata mismatches should be errors or warnings.
- progress
Show progress while files are imported. Defaults to
TRUEin interactive sessions andFALSEotherwise.
Details
When variable filters are used, source columns required to construct
datetimes are used internally but omitted unless selected by the filters.
Declared files that are absent from a local package subset are skipped. When
a local package contains fewer datasets or files than declared,
glc_read() reports the discrepancy and reads the available files.
Examples
if (FALSE) { # interactive()
iztech <- glc_open("tscnlab/melidos-iztech-glc-dataset")
glc_read(
iztech,
dataset_id = "MELIDOS_IZTECH_S001",
file_group = "MELIDOS_IZTECH_S001:17",
n_max = 10
)
}
