Learn R Programming

aoos (version 0.5.0)

Accessor-class: Accessor class

Description

This is a virtual class to be contained in other class definitions. It overrides the default accessor $ and is intended to be used with the aoos class system (defineClass). Inherit from this class if you want to access public fields in the same way you access lists.

Usage

# S4 method for Accessor
$(x, name)

# S4 method for Accessor $(x, name) <- value

Arguments

x
object
name
member name
value
value to assign to.