Make Supplemental Qualifier
Arguments
- dataset
dataset the supp will be pulled from
- metacore
A subsetted metacore object to get the supp information from. If not already subsetted then a
dataset_namewill need to be provided- dataset_name
Optional string to specify the dataset that is being built. This is only needed if the metacore object provided hasn't already been subsetted.
Note: Deprecated in version 0.2.0. Thedataset_nameargument will be removed in a future release. Please usemetacore::select_datasetto subset themetacoreobject to obtain metadata for a single dataset.
Examples
library(metacore)
library(safetyData)
library(tibble)
load(metacore_example("pilot_SDTM.rda"))
spec <- metacore %>% select_dataset("AE")
#> Warning: `key_seq` from the `ds_vars` table only contains missing values.
#> Warning: `core` from the `ds_vars` table only contains missing values.
#> Warning: `supp_flag` from the `ds_vars` table only contains missing values.
#> Warning: `format` from the `var_spec` table only contains missing values.
#> Warning: `sig_dig` from the `value_spec` table only contains missing values.
#> Warning: `where` from the `value_spec` table only contains missing values.
#> ✔ AE dataset successfully selected
ae <- combine_supp(sdtm_ae, sdtm_suppae)
make_supp_qual(ae, spec) %>% as_tibble()
#> Error: No supplemental variables specified in metacore object. Please check your specifications