nl_parse_model R Documentation

Parse NetLogo model file

Description

Gets information about widgets (e.g. sliders, monitors, plots) from from NetLogo model file

Usage

nl_parse_model(model_file)

Arguments

model_file

NetLogo model file

Details

Imports attributes from sliders defined in NetLogo model file. Based on information from https://github.com/NetLogo/NetLogo/wiki/Model-file-format and https://github.com/NetLogo/NetLogo/wiki/Widget-Format

Value

Returns an object of class nl_model. It is a list containing at most the following components:

view

a data frame with NetLogo model view attributes

sliders

a data frame with NetLogo model sliders attributes

switches

a data frame with NetLogo model switches attributes

monitors

a data frame with NetLogo model monitors attributes

plots

a data frame with NetLogo model plots attributes