Learn R Programming

compositions (version 1.40-2)

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)

Arguments

x

the object

cls

the new additional class

Value

The object x with additional class attached.

Examples

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

Run the code above in your browser using DataLab