Learn R Programming

compositions (version 2.0-4)

gsi.addclass: Internal function: give a derived subclass to an object

Description

This function just extends the class of an object by the given class.

Usage

gsi.addclass( x , cls)

Value

The object x with additional class attached.

Arguments

x

the object

cls

the new additional class

Author

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

Examples

Run this code
x=rplus(1:10)
x
#gsi.addclass(x,"goofy")

Run the code above in your browser using DataLab