Learn R Programming

reproducible (version 1.1.1)

.setSubAttrInList: Set subattributes within a list by reference

Description

This uses data.table::setattr, but in the case where there is 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