View source: R/util_ensure_in.R
util_ensure_in | R Documentation |
will only warn and return a cleaned x
.
util_ensure_in(x, set, err_msg, error = FALSE, applicability_problem = NA)
x |
character vector of needles |
set |
character vector representing the haystack |
err_msg |
character optional error message. Use %s twice, once for the missing elements and once for proposals |
error |
logical if |
applicability_problem |
logical error indicates unsuitable resp_vars |
character invisible(intersect(x, set))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.