setClasses {BBmisc}R Documentation

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

setClasses(list(), c("foo1", "foo2"))
## list()
## attr(,"class")
## [1] "foo1" "foo2"

[Package BBmisc version 1.7 Index]