is_ct_mappable | R Documentation |
is_ct_mappable()
returns a logical vector indicating whether each element
of x
is found in the from
values used for controlled terminology recoding.
Empty strings (blanks) and NA
values are treated specially and are
considered mappable terms, even though they might not be.
This function is useful for checking in advance which terms in a vector can be recoded given a specified controlled terminology mapping.
is_ct_mappable(x, from)
x |
A character vector of terms to be evaluated for recoding. |
from |
A character vector of controlled terminology terms that |
A logical vector of the same length as x
, where TRUE
indicates the
corresponding term in x
is found in from
, and FALSE
otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.