state4chain: returns the states of each node of a chain

View source: R/f02.chain.code.r

state4chainR Documentation

returns the states of each node of a chain

Description

From a chain object returns a named character precising the role of each node: "r" for root, "c" for collider, "t" for transmitter and "l" for leaf.

Usage

state4chain(chain)

Arguments

chain

the chain object to be considered.

Value

a character of the states named with node names.

Examples

 state4chain(rbmn0chain.01);
 state4chain(rbmn0chain.03);

rbmn documentation built on July 9, 2023, 6:37 p.m.