Learn R Programming

retistruct (version 0.5.12)

addClass: Add new class to class vector of object

Description

This adds a new class to the class vector. If the class is dataset type it is prepended at the start of the class vector. If it is an outline type, it is put after all the dataset classes, but before the other outline ones. This is needed for the plotting functions to work properly.

Usage

addClass(newclass, obj)

Arguments

newclass

New class to add

obj

Object to which to add it

Value

New class vector