inherits_test: Check class of object

View source: R/type_check.R

inherits_testR Documentation

Check class of object

Description

Check class of object

Usage

inherits_test(x, cl)

Arguments

x

Object to check

cl

Character: class to check against

Value

Logical

Author(s)

EDG

Examples

## Not run: 
inherits_check("papaya", "character") # TRUE
inherits_check(c(1, 2.5, 3.2), "integer") # FALSE
inherits_check(iris, "list") # FALSE, compare to is_check(iris, is.list)

## End(Not run)

egenn/rtemis documentation built on Nov. 22, 2024, 4:12 a.m.