PCMGetAttribute {PCMBase} | R Documentation |
Value of an attribute of an object or values for an attribute found in its members
Description
Value of an attribute of an object or values for an attribute found in its members
Usage
PCMGetAttribute(name, object, member = "", ...)
Arguments
name |
attribute name. |
object |
a PCM model object or a PCMTree object. |
member |
a member expression. Member expressions are character strings denoting named elements in a list object (see examples). Default: "". |
... |
additional arguments passed to |
Value
if member is an empty string, attr(object, name)
. Otherwise, a named list
containing the value for the attribute for each member in object
matched by member
.
Examples
PCMGetAttribute("class", PCMBaseTestObjects$model_MixedGaussian_ab)
PCMGetAttribute(
"dim", PCMBaseTestObjects$model_MixedGaussian_ab,
member = "$Sigmae_x")
[Package PCMBase version 1.2.14 Index]