of: Is an object of a given class

Description Usage Arguments Value Author(s) See Also Examples

Description

Operator to check if an object is of a given class

Usage

1
x %of% y

Arguments

x

R object

y

Character string, the class to check against.

Value

Logical value indicating the result

Author(s)

Romain Francois <francoisromain@free.fr>

See Also

inherits

Examples

1
iris %of% "data.frame"

operators documentation built on May 2, 2019, 6:48 p.m.