check-scalar-isAny: Does the object belong to or inherit any of these classes?

check-scalar-isAnyR Documentation

Does the object belong to or inherit any of these classes?

Description

Does the object belong to or inherit any of these classes?

Usage

isAny(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 ====
isAny(x, classes = c("integer", "NULL"))
isAny(x, classes = c("numeric", "NULL"))
isAny(x, classes = c("atomic", "NULL"))

## FALSE ====
isAny(x, classes = c("character", "data.frame"))

acidgenomics/goalie documentation built on Dec. 11, 2023, 11:36 p.m.