View source: R/spec_accessors.R
| spec_standard | R Documentation |
Return the one CDISC standard the specification carries (e.g.
"ADaMIG 1.1", "SDTMIG 3.2"). A artoo_spec is single-standard by
construction — artoo_spec() aborts when its sources mix standards —
so this is always a scalar; NA when no source named one.
spec_standard(spec)
spec |
The specification to read. |
A <character(1)>: the standard, or NA when unspecified.
spec_study() for the rest of the study-level metadata;
artoo_spec() for how the standard is resolved.
# ---- Example 1: the standard set at construction ----
#
# Pass the standard explicitly (or let it resolve from a P21 workbook's
# Standard column / a Define-XML study block) and read it back.
spec <- artoo_spec(
cdisc_adam_datasets, cdisc_adam_variables,
codelists = cdisc_codelists,
standard = "ADaMIG 1.1"
)
spec_standard(spec)
# ---- Example 2: unspecified resolves to NA ----
#
# A spec built without any standard source carries NA.
bare <- artoo_spec(
cdisc_adam_datasets, cdisc_adam_variables,
codelists = cdisc_codelists
)
spec_standard(bare)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.