| DOLLAR.Class {R.oo} | R Documentation |
Makes the fields and methods of an Class accessable via the $
operator. This method is never called explicitly, but through an indirect
usage of the $ operator, e.g. obj$name or
obj$getValue().
get<Name>() method,
e.g. if name has the value "age", a getAge() will be
looked for. If such a method exists it will be called with the Class
as the first and only argument, e.g. getAge(this).
A get<Name>() is only looked for if <name> is not a
private field. A private field is a name beginning with a
. (period). The rational for this naming convention is to be
consistent with how ls() works, which will not list
such members by default.
name.
name will be
searched for and returned.
NULL is returned.
"$.Class"(this, name) "[[.Class"(this, name)
name |
The name of the field or method to be accessed. |
... |
Not used. |
Returns the value of a field or a method (function).
If no such field or method exists, NULL is returned.
Henrik Bengtsson http://www.braju.com/R/
For more information see Class.
## Not run: For a complete example see help(Class).