parse_flows: Parse the information from a 'flows' definition table.

Description Usage Arguments Value Examples

View source: R/IO.R

Description

This function checks the content of a flows definition, and appends some missing columns. It is mainly used internally, but can be invoked by the uses to see what it does.

Usage

1
parse_flows(flows, verbose = FALSE)

Arguments

flows

data.frame containing the nodes definition

verbose

logical: print some information?

Value

modified flows data.frame

Examples

1
2
3
4
Q0 <- data.frame(from="A", to="B", qty=10) # Note 'qty' as alias for quantity
str(Q0)
Q1 <- parse_flows(Q0)
str(Q1)

PantaRhei documentation built on Dec. 18, 2020, 5:08 p.m.