Skip to contents

Create a new ClassDefinition in R.

Usage

Class(.classname, ..., .validate = TRUE)

Arguments

.classname

The name of the class.

...

The fields and methods of the class definition, supplied as pairs of names and types using the := operator.

.validate

Whether to validate the class attributes. Note: setting this to FALSE gives a slight performance boost.

Details

The Class function creates a new ClassDefinition in R. It allows you to define fields and methods for the class.