Learn R Programming

AHPtools (version 1.0.1)

viewAHPtree: Create AHP Tree Structure

Description

Builds a hierarchical tree from a flat AHP representation.

Usage

viewAHPtree(ahp)

Value

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

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")`

Examples

Run this code
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