apply_metadata {random.cdisc.data} | R Documentation |
Apply Metadata
Description
Apply label and variable ordering attributes to domains.
Usage
apply_metadata(
df,
filename,
add_adsl = TRUE,
adsl_filename = "metadata/ADSL.yml"
)
Arguments
df |
( |
filename |
( |
add_adsl |
( |
adsl_filename |
( |
Value
Data frame with metadata applied.
Examples
seed <- 1
adsl <- radsl(seed = seed)
adsub <- radsub(adsl, seed = seed)
yaml_path <- file.path(path.package("random.cdisc.data"), "inst", "metadata")
adsl <- apply_metadata(adsl, file.path(yaml_path, "ADSL.yml"), FALSE)
adsub <- apply_metadata(
adsub, file.path(yaml_path, "ADSUB.yml"), TRUE,
file.path(yaml_path, "ADSL.yml")
)
[Package random.cdisc.data version 0.3.15 Index]