assert_names | R Documentation |
Check Object Names
assert_names(x, expected = NULL)
assert_rownames(x, expected = NULL)
assert_colnames(x, expected = NULL)
x |
An object to be checked. |
expected |
An appropriate expected value. |
Throws an error, if any, and returns x
invisibly otherwise.
N. Frerebeau
Other checking methods:
assert_constant()
,
assert_dim()
,
assert_empty()
,
assert_infinite()
,
assert_length()
,
assert_lower()
,
assert_missing()
,
assert_numeric
,
assert_package()
,
assert_square()
,
assert_type()
,
assert_unique()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.