Learn R Programming

BBmisc (version 1.13.1)

setClasses: A wrapper for class(x) = classes

Description

Sets the class attribute of an object and returns the modified object.

Usage

setClasses(x, classes)

Value

Changed object x.

Arguments

x

[any]
Your object.

classes

[character]
New classes.

Examples

Run this code
setClasses(list(), c("foo1", "foo2"))

Run the code above in your browser using DataLab