Skip to contents

Creates a data frame containing node information from a Monte Carlo module network. Includes node attributes, values, and relationships.

Usage

get_node_table(mcmodule, variate = 1, inputs = FALSE, percentages = TRUE)

Arguments

mcmodule

(mcmodule object). Module containing node information.

variate

(positive integer). Variate (row) to extract from every stochastic node and input data frame. The default uses the first variate. Use another row number when the same row has the intended meaning across the module's data frames. This argument does not filter by key values; filter the module before plotting when row positions are not comparable.

inputs

(logical). If TRUE, include non-node inputs (datasets, dataframes, and columns). Default: FALSE.

percentages

(logical). If TRUE, eligible stochastic nodes whose values do not exceed 1 are displayed as percentages. Count and time nodes identified from their names are always displayed as numbers. If FALSE, all stochastic nodes are displayed as numbers. Default: TRUE.

Value

A data frame containing node information and attributes.

See also

get_edge_table() for network edges, mc_filter() for selecting variates by conditions, and mc_network() for interactive visualisation.

Examples

node_table <- get_node_table(imports_mcmodule)