Last data update: 2014.03.03

R: classCreator
classCreatorR Documentation

classCreator

Description

Write the 'R code' for creating a new class

Usage

classCreator(name,field,type)

Arguments

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.

Details

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'.

Value

None

Author(s)

Christophe Genolini <genolini@u-paris10.fr>

References

Book: "Petit Manuel de Programmation Orientee Objet sous R"

Examples

classCreator("Complex",c("xx","yy"),c("numerix","numeric"))

Results