add_class_label: Manage S3 class labels

Description Usage Arguments Examples

View source: R/helper-class_labels.R

Description

Add or remove S3 cpass labels.

Usage

1
2
3
add_class_label(x, new_class)

remove_class_label(x, drop_class)

Arguments

x

An object to modify.

new_class

(character)
A name of a new class. May be a vector of names.

drop_class

(character)
A name of a class to remove. May be a vector of names.

Examples

1
add_class_label(list("ok"), "ok_list")

GegznaV/manyROC documentation built on Sept. 17, 2018, 2:15 p.m.