Creates the ds_spec from a list of datasets (optionally filtered by the sheet
input). The named vector cols
is used to determine which is the correct
sheet and renames the columns
spec_type_to_ds_spec(
doc,
cols = c(dataset = "[N|n]ame|[D|d]ataset|[D|d]omain", structure = "[S|s]tructure",
label = "[L|l]abel|[D|d]escription"),
sheet = NULL
)
Named list of datasets @seealso read_all_sheets()
for exact
format
Named vector of column names. The column names can be regular expressions for more flexibility. But, the names must follow the given pattern
Regular expression for the sheet name
a dataset formatted for the metacore object
Other spec builder:
spec_type_to_codelist()
,
spec_type_to_derivations()
,
spec_type_to_ds_vars()
,
spec_type_to_value_spec()
,
spec_type_to_var_spec()