has_class: Does object have a class ?

View source: R/utilities.R

has_classR Documentation

Does object have a class ?

Description

Utility function to see if an object has a particular class. Useful when we don't know how many other classes the object may have.

Usage

has_class(x, cls)

Arguments

x

the object we want to check the class of.

cls

the class we want to know if it has or not.

Value

TRUE if the object has the class. FALSE if the object does not have the class.


rbmi documentation built on Oct. 16, 2024, 5:09 p.m.