DecisionTableParser: Parse data.frame for decisions

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/CheckDecisions.r

Description

Parses a data.frame into odecisions.

Usage

1
DecisionTableParser(DTable, env = .GlobalEnv)

Arguments

DTable

data.frame

env

target environment, default is .GlobalEnv

Details

Decisions consist of conditions and effects, target a certain variable and may have multiple options.

Input format is described on http://en.opasnet.org/w/Decision. Currently usable decision effects are Add, Multiply, Replace, Remove and Identity.

See also: http://en.opasnet.org/

Value

No return value. Saves odecision class objects into specified environment.

Author(s)

T. Rintala [email protected]

See Also

CheckDecisions

Examples

1
2
3
4
5
modeldecisions <- data.frame(Stakeholder = "Group A", Decision = "More wind power", 
  Option = "A few more turbines", Variable = "PowerGeneration", Cell = "Type:Wind", 
  Change = "Add", Result = "5")
DecisionTableParser(modeldecisions)
ls()

OpasnetUtils documentation built on July 4, 2017, 9:44 a.m.