Skip to content

Instantly share code, notes, and snippets.

@mayt1992
mayt1992 / R code
Created May 17, 2017 15:23
port_risk.ahp for R
> library(ahp)
> ahpFile <- system.file("extdata", "port_risk.ahp", package="ahp")
> port_riskAhp <- Load(ahpFile)
> library(data.tree)
> print(port_riskAhp, filterFun = isNotLeaf)
> Visualize(port_riskAhp)
> Calculate(port_riskAhp)
> print(port_riskAhp, priority = function(x) x$parent$priority["Total", x$name])