powered by
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))
has_no_attributes(x, .xname = get_name_in_parent(x))
Input to check.
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.
has_any_attributes
TRUE
attributes(x)
has_attributes
NULL
has_attributes to check for specific attributes.
# NOT RUN { has_any_attributes(matrix()) has_no_attributes(data.frame()) # }
Run the code above in your browser using DataLab