Learn R Programming

OpasnetUtils (version 1.3)

DecisionTableParser: Parse data.frame for decisions

Description

Parses a data.frame into odecisions.

Usage

DecisionTableParser(DTable, env = .GlobalEnv)

Arguments

DTable

data.frame

env

target environment, default is .GlobalEnv

Value

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

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/

See Also

CheckDecisions

Examples

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

Run the code above in your browser using DataLab