Learn R Programming

BBmisc (version 1.13)

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

Description

A wrapper for class(x) = classes.

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