class definition of the dynamics runtime clr object
S4Object
01 Syntax
02 Methods
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| slots | 1 | The names and classes for the slots in the new class. |
| class_name | 1 | character string name for the class. |
| prototype | 1 | supplies an object with the default data for the slots in this class. |
| contains | 1 | A vector specifying existing classes from which this class should inherit. |
| mode | 1 | |
| raw | 1 | |
| reflection | 1 |
04 Members
The names and classes for the slots in the new class. This argument must be supplied by name, slots=, in the call, for back compatibility with other arguments no longer recommended.
The argument must be vector With a names attribute, the names being those Of the slots In the New Class. Each element Of the vector specifies an existing Class; the corresponding slot must be from this Class Or a subclass Of it. Usually, this Is a character vector naming the classes. It's also legal for the elements of the vector to be class representation objects, as returned by getClass.
As a limiting case, the argument may be an unnamed character vector; the elements are taken as slot names And all slots have the unrestricted class "ANY".
character string name for the class.
supplies an object with the default data for the slots in this class. A more flexible approach is to write a method for initialize().
A vector specifying existing classes from which this class should inherit. The new class will have all the slots of the superclasses, with the same requirements on the classes of these slots. This argument must be supplied by name, contains=, in the call, for back compatibility with other arguments no longer recommended.
See the section 'Virtual Classes’ for the special superclass "VIRTUAL".