Learn R Programming

BBmisc (version 1.10)

setClasses: A wrapper for class(x) = classes.

Description

A wrapper for class(x) = classes.

Usage

setClasses(x, classes)

Arguments

x
[any] Your object.
classes
[character] New classes.

Value

Changed object x.

Examples

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

Run the code above in your browser using DataLab