set_class {mlr3misc}R Documentation

Set the Class

Description

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.

Examples

set_class(list(), c("foo1", "foo2"))

[Package mlr3misc version 0.15.1 Index]