Get and set attributes values for items in an attrData object
attrDataItem method provides get/set access to items stored
attrDataItem(self, x, attr) attrDataItem(self, x, attr) <- value
charactervector of item names
charactervector of length 1 giving the attribute name to get/set. Note that the attribute name must have already been defined for the
attrDefaults. If missing, return a list of all attributes for the specified nodes.
- An R object to set as the attribute value for the
specified items. If the object has length one or does not have a
length method defined, it will be assigned to all items in
x. If the length of
valueis the same as
x, the corresponding elements will be assigned. We will add an argument to indicate that the
valueis to be taken as-is for those cases where the lengths are the same coincidentally.
Looks like there are no examples yet.