Range of years available for a yearly-partitioned dataset
Source:R/discovery.R
cvm_dataset_years.RdDiscovers the years currently published for the dataset by reading the CVM open-data directory listing. Returns an integer vector (sorted, no gaps assumed). Caches the result for the duration of the R session to avoid repeated HTTP calls.
Arguments
- dataset
Short dataset id.
- group
Optional CKAN group slug (e.g.
"companhias"). WhenNULL(default) resolved by uniqueness across the installed schema tree; when a dataset slug occurs in more than one group, omittinggroupaborts withcvmdata_error_input_ambiguous.- schema
Optional already-loaded schema (used internally by
issuer_fetch()to avoid double-load). Users typically omit.
See also
Other discovery:
cvm_codelist(),
cvm_datasets(),
cvm_dictionary(),
cvm_groups(),
cvm_tables()