View source: R/has-attributes.R
| has_any_attributes | R Documentation |
Checks to see if the input has any attributes.
has_any_attributes(x, .xname = get_name_in_parent(x)) has_no_attributes(x, .xname = get_name_in_parent(x))
x |
Input to check. |
.xname |
Not intended to be used directly. |
has_any_attributes returns TRUE if attributes(x)
has length greater than zero. has_attributes returns a logical vector
that is TRUE whenever the specified attribute is not NULL.
There are no corresponding assert functions, since they overlap
too closely with the assertions for has_attributes.
has_attributes to check for specific attributes.
has_any_attributes(matrix()) has_no_attributes(data.frame())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.