R: Add a new class attribute

add_class {immunarch} | R Documentation

## Add a new class attribute

### Description

Add a new class attribute

### Usage

    add_class(.obj, .class)

### Arguments

`.obj` | R object.
`.class` | String with the desired class name.

### Value

Input object with additional class `.class`.

### Developer Examples

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

[Package immunarch version 0.6.7 Index]