Learn R Programming

compositions (version 0.9-11)

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

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
gsi.addclass(1:10,"goofy")

Run the code above in your browser using DataLab