| assert_ct_spec | R Documentation |
assert_ct_spec() will check whether ct_spec is a data frame and if it contains the
variables: codelist_code, collected_value, term_synonyms, and term_value.
In addition, it will also check if the data frame is not empty (no rows), and
whether the columns codelist_code and term_value do
not contain any NA values.
assert_ct_spec(ct_spec, optional = FALSE)
ct_spec |
A data frame to be asserted as a valid controlled terminology data set. |
The function throws an error if ct_spec is not a valid controlled
terminology data set; otherwise, ct_spec is returned invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.