PCMGetAttribute: Value of an attribute of an object or values for an attribute...

View source: R/PCM.R

PCMGetAttributeR 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 MatchListMembers.

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

venelin/PCMBase documentation built on March 14, 2024, 8:24 p.m.