Skip to contents

Does the input belong to or inherit all of these classes?

Usage

isAll(x, classes)

Arguments

x

Object.

classes

character. Object classes.

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2019-10-04.

Examples

x <- 1L

## TRUE ====
isAll(x, classes = c("integer", "numeric"))
#> [1] TRUE

## FALSE ====
isAll(x, classes = c("integer", "NULL"))
#> [1] FALSE