Description Usage Arguments Value Examples
This function tests to see if names x
are found in an object and
returns TRUE if they are
1 | check_names(x, obj)
|
x |
Character. Regular expression of name |
obj |
Named object. Can be a vector, list, data.frame, or any other object that has a names attribute |
Logical. TRUE if names x
exist in obj
1 2 3 | dat <- data.frame(a = 1, b = 2)
check_names("a", dat)
check_names("c", dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.