View source: R/spec_accessors.R
| spec_comments | R Documentation |
Return the comment definitions a specification carries. Datasets,
variables, value-level rows, and codelists reference these by
comment_id; validate_spec() checks the references resolve and each
referenced comment has a body.
spec_comments(spec)
spec |
The specification to read. |
A data frame of comment metadata, one row per comment, with all
four columns: comment_id, description, document_id, pages. Empty
when the spec defines no comments.
spec_methods(), spec_documents(), validate_spec().
# ---- Example 1: the comments a spec defines ----
#
# Build a spec with one comment and read it back.
spec <- artoo_spec(
data.frame(dataset = "ADSL"),
data.frame(dataset = "ADSL", variable = "AGE", data_type = "integer"),
comments = data.frame(
comment_id = "C.AGE",
description = "Age in years at informed consent.",
stringsAsFactors = FALSE
)
)
spec_comments(spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.