Learn R Programming

BBmisc (version 1.13)

hasAttributes: Check if given object has certain attributes.

Description

Check if given object has certain attributes.

Usage

hasAttributes(obj, attribute.names)

Value

[logical(1)]

TRUE if object x contains all attributes from attributeNames

and FALSE otherwise.

Arguments

obj

[mixed]
Arbitrary R object.

attribute.names

[character]
Vector of strings, i.e., attribute names.