Description Usage Arguments Value Examples
Check whether test_names
are columns in the data.frame
df
1 | check_colnames(test_names, df, throw_error = TRUE)
|
test_names |
a vector of column names to test |
df |
the |
throw_error |
boolean indicating whether to throw an error if
any |
boolean indicating whether or not all test_names
are
columns of df
1 2 3 | check_colnames(c("pert_id", "pert_iname"), cdesc_char) # TRUE
check_colnames(c("pert_id", "foobar"),
cdesc_char, throw_error=FALSE)# FALSE, suppress error
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.