has_class {immunarch}R Documentation

Check for the specific class

Description

A function to check if an input object has a specific class name.

Usage

has_class(.data, .class)

Arguments

.data

Any R object.

.class

Character vector. Specifies a class name to check against.

Value

Logical value.

Developer Examples

tmp <- "abc" immunarch:::has_class(tmp, "new_class") tmp <- immunarch:::add_class(tmp, "new_class") immunarch:::has_class(tmp, "new_class")


[Package immunarch version 0.9.1 Index]