Check if object has an attribute

check_attr(x, attribute)

Arguments

x

R object

attribute

string