Description Usage Arguments Value
a helper function to create new struct objects
1 2 3 4 5 6 7 8 9 |
class_name |
the name of the new class to create |
struct_obj |
the struct obj to inherit e.g. 'model', 'metric' etc |
stato |
TRUE (default) or FALSE to inherit the stato class |
params |
a named character vector of input parameters where each element specifies the type of value that will be in the slot e.g. c(example = 'character') |
outputs |
a named character vector of outputs where each element specifies the type of value that will be in the slot e.g. c(example = 'character') |
private |
a named character vector of private slots where each element specifies the type of value that will be in the slot e.g. c(example = 'character'). These are intended for internal use by the object and generally not available to the user. |
prototype |
a named list with initial values for slots. |
a new class definition. to create a new object from this class use X = new_class_name()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.