viewAHPtree {AHPtools}R Documentation

Create AHP Tree Structure

Description

Builds a hierarchical tree from a flat AHP representation.

Usage

viewAHPtree(ahp)

Arguments

ahp

A data frame with the AHP structure including Node and Parent columns

Details

For an overview and examples, please see the associated vignette: 'vignette("viewAHPtree", package = "AHPtools")'

Value

A 'Node' object (from the 'data.tree' package) representing the full AHP tree

Examples

file <- system.file("extdata", "example_transport.xlsx", package = "AHPtools")
AHPstruc <- readxl::read_excel(file, sheet = "ahp")
tree <- viewAHPtree(AHPstruc)
print(tree, "level", limit=NULL)

[Package AHPtools version 1.0.1 Index]