Description Usage Arguments Details Value Author(s) References Examples
Write the 'R code' for creating a new class
1 | classCreator(name,field,type)
|
name |
[character] Name of the class (with its first letter in upper case. |
field |
[vector(character)] Name(s) of the field of the class. |
type |
[vector(character)] Type of the field of the class. |
Given its three argument, this function display on screen the R code for creating a new class. More precisely, it write code for 'validiy','constructor','show','get'&'set'.
None
Christophe Genolini <genolini@u-paris10.fr>
Book: "Petit Manuel de Programmation Orientee Objet sous R"
1 | classCreator("Complex",c("xx","yy"),c("numerix","numeric"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.