attrDataItem
method provides get/set access to items stored
in a attrData-class
object.
attrDataItem(self, x, attr)
attrDataItem(self, x, attr) <- value
attrData-class
instancecharacter
vector of item namescharacter
vector of length 1 giving the attribute
name to get/set. Note that the attribute name must have already been
defined for the attrData
object via
attrDefaults
. If missing, return a list of all
attributes for the specified nodes.x
.
If the length of value
is the same as x
, the
corresponding elements will be assigned. We will add an argument to
indicate that the value
is to be taken as-is for those cases
where the lengths are the same coincidentally.