parse_flows {PantaRhei} | R Documentation |
Parse the information from a 'flows' definition table.
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
parse_flows(flows, verbose = FALSE)
Arguments
flows |
data.frame containing the nodes definition |
verbose |
logical: print some information? |
Value
modified flows data.frame
Examples
Q0 <- data.frame(from="A", to="B", qty=10) # Note 'qty' as alias for quantity
str(Q0)
Q1 <- parse_flows(Q0)
str(Q1)
[Package PantaRhei version 0.1.2 Index]