Add a value to a list-valued attribute of a member or members matching a pattern
PCMAddToListAttribute(
name,
value,
object,
member = "",
enclos = "?",
spec = TRUE,
inplace = TRUE,
...
)
if inplace
is TRUE
no value is returned. Otherwise, a
modified version of object
is returned.
a character string denoting the attribute name.
the value for the attribute.
a PCM or a list object.
a member expression. Member expressions are character strings denoting named elements in a list object (see examples). Default: "".
a character string containing the special symbol '?'. This symbol is to be replaced by matching expressions. The result of this substitution can be anything but, usually would be a valid R expression. Default: "?".
a logical (TRUE by default) indicating if the attribute should also be set in the corresponding member of the spec attribute (this is for PCM objects only).
logical (TRUE by default) indicating if the attribute should be set to the object in the current environment, or a modified object should be returned.
additional arguments passed to MatchListMembers
.