NLWrapper.GetParameter {evoper}R Documentation

NLWrapper.GetParameter

Description

Gets the value of a model parameter

Usage

NLWrapper.GetParameter(obj, name)

Arguments

obj

The object retuned by NLWrapper.Model

name

The parameter name string or the collection of parameter names

Value

The parameter values

Examples

## Not run: 
   rm(list=ls())
   p<- "C:/Program Files/NetLogo 6.0.4/app"
   m<- file.path(nlpath, "models", "Sample Models", "Biology", "Wolf Sheep Predation.nlogo")
   o<- NLWrapper.Model(p, m)
   v<- NLWrapper.GetParameter(o, c("initial-number-sheep"))

   or

   v<- NLWrapper.GetParameter(o, c("initial-number-sheep","initial-number-wolves")))

## End(Not run)


[Package evoper version 0.5.0 Index]