View source: R/spec_accessors.R
| spec_study | R Documentation |
Return the study-level metadata row, or a single field from it. Holds
the canonical study fields (study_name, study_description,
protocol_name — every source spelling is canonicalised by
artoo_spec()) plus any other study-scoped fields a source provides
(the CDISC standard lives on its own property — see spec_standard()).
spec_study(spec, field = NULL)
spec |
The specification to read. |
field |
Return one field instead of the row. Restriction: a non- |
The study data frame (one row), or the value of one field.
The canonical fields are study_name, study_description, and
protocol_name — every source spelling is canonicalised to these by
artoo_spec() — plus any other field the source carried verbatim
(e.g. define_version from a Define-XML read).
spec_datasets() for the datasets the study scopes;
spec_standard() for the spec's CDISC standard.
# ---- Example 1: the whole study row, then one field ----
#
# spec_study() with no field returns the study-level table; pass a field
# name to pull a single value such as the study name.
spec <- artoo_spec(
cdisc_adam_datasets, cdisc_adam_variables,
codelists = cdisc_codelists,
study = data.frame(study_name = "CDISCPILOT01")
)
spec_study(spec)
spec_study(spec, "study_name")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.