has_class: Check for the specific class

View source: R/tools.R

has_classR 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")


immunomind/immunarch documentation built on March 20, 2024, 12:01 p.m.