Learn R Programming

BBmisc (version 1.10)

addClasses: A wrapper to add to the class attribute.

Description

A wrapper to add to the class attribute.

Usage

addClasses(x, classes)

Arguments

x
[any] Your object.
classes
[character] Classes to add. Will be added in front (specialization).

Value

Changed object x.

Examples

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

Run the code above in your browser using DataLab