powered by
Builds a hierarchical tree from a flat AHP representation.
viewAHPtree(ahp)
A `Node` object (from the `data.tree` package) representing the full AHP tree
A data frame with the AHP structure including Node and Parent columns
For an overview and examples, please see the associated vignette: `vignette("viewAHPtree", package = "AHPtools")`
file <- system.file("extdata", "example_transport.xlsx", package = "AHPtools") AHPstruc <- readxl::read_excel(file, sheet = "ahp") tree <- viewAHPtree(AHPstruc) print(tree, "level", limit=NULL)
Run the code above in your browser using DataLab