.setSubAttrInList {reproducible} | R Documentation |
Set subattributes within a list by reference
Description
Sets only a single element within a list attribute.
Usage
.setSubAttrInList(object, attr, subAttr, value)
Arguments
object |
An arbitrary object |
attr |
The attribute name (that is a list object) to change |
subAttr |
The list element name to change |
value |
The new value |
Value
This sets or updates the subAttr
element of a list that is located at
attr(object, attr)
, with the value
. This, therefore, updates a sub-element
of a list attribute and returns that same object with the updated attribute.
[Package reproducible version 2.1.0 Index]