This uses data.table::setattr
, but in the case where there is
only a single element within a list attribute.
.setSubAttrInList(object, attr, subAttr, value)
An arbitrary object
The attribute name (that is a list object) to change
The list element name to change
The new value