When some sites in the parent-child table have multiple nodes, this function incorporates those nodes into the parent-child table, expanding it so that the parent and child locations now refer to nodes, not sites.

addParentChildNodes(
  parent_child = NULL,
  configuration = NULL,
  array_suffix = c("UD", "UMD", "A0B0")
)

Arguments

parent_child

dataframe produced by `buildParentChild()`.

configuration

a configuration dataframe, such as one built by `buildConfig()`.

array_suffix

if node_assign = "array", should nodes uses the suffixes of _U & _D (UD), _U, _M, & _D (UMD), or _A0 & _B0 (A0B0) to denote upstream, middle, and downstream arrays, respectively. Default is UD. If array_suffix = "UD" or array_suffix = "A0B0", the middle array is grouped with the upstream array.

Author

Kevin See

Examples

addParentChildNodes()
#> Error in addParentChildNodes(): !is.null(parent_child) is not TRUE