Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


compositions (version 1.40-5)

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