attrs {cheapr} | R Documentation |
Add and remove attributes
Description
Simple tools to add and remove attributes, both normally and in-place.
To remove specific attributes, set those attributes to NULL
.
Usage
attrs_modify(x, ..., .set = FALSE, .args = NULL)
attrs_add(x, ..., .set = FALSE, .args = NULL)
attrs_clear(x, .set = FALSE)
attrs_rm(x, .set = FALSE)
Arguments
x |
Object to add/remove attributes. |
... |
Named attributes, e.g 'key = value'. |
.set |
Should attributes be added in-place without shallow-copying |
.args |
An alternative to |
Value
The object x
with attributes removed or added.
See Also
[Package cheapr version 1.3.2 Index]