ExposeAttribute {pkgmaker} | R Documentation |
Exposing Object Attributes
Description
The function ExposeAttribute
creates an S3 object that
exposes all attributes of any R object, by making them accessible via
methods $
and/or $<-
.
Usage
ExposeAttribute(object, ..., .MODE = "rw", .VALUE = FALSE)
attr_mode(x)
attr_mode(x) <- value
Arguments
object |
any R object whose attributes need to be exposed |
... |
attributes, and optionally their respective values or
access permissions.
See argument |
.MODE |
access mode:
|
.VALUE |
logical that indicates if the values of named arguments
in |
x |
an |
value |
replacement value for mode.
It can be |
Value
ExposeAttribute
returns an S3 object of class ExposeAttribute
.