PCMAddToListAttribute {PCMBase}R Documentation

Add a value to a list-valued attribute of a member or members matching a pattern

Description

Add a value to a list-valued attribute of a member or members matching a pattern

Usage

PCMAddToListAttribute(
  name,
  value,
  object,
  member = "",
  enclos = "?",
  spec = TRUE,
  inplace = TRUE,
  ...
)

Arguments

name

a character string denoting the attribute name.

value

the value for the attribute.

object

a PCM or a list object.

member

a member expression. Member expressions are character strings denoting named elements in a list object (see examples). Default: "".

enclos

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: "?".

spec

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).

inplace

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.

Value

if inplace is TRUE no value is returned. Otherwise, a modified version of object is returned.


[Package PCMBase version 1.2.14 Index]