set_class

0th

Percentile

Set the Class

Simple wrapper for class(x) = classes.

Usage
set_class(x, classes)
Arguments
x

:: any.

classes

:: character(1) Vector of new class names.

Value

Object x, with updated class attribute.

Aliases
  • set_class
Examples
# NOT RUN {
set_class(list(), c("foo1", "foo2"))
# }
Documentation reproduced from package mlr3misc, version 0.1.0, License: LGPL-3

Community examples

Looks like there are no examples yet.