dm_get_model: Get model objects from World.

Description Usage Arguments Value Examples

View source: R/utils-event.R

Description

Get model objects from World.

Usage

1
dm_get_model(x, model_names)

Arguments

x

a World object.

model_names

a character vector of the named Model objects to be retrieved.

Value

a named list containing Model objects

Examples

1
2
3
4
create_toy_world()
testModel <- list(a = 1)
world$add(testModel, "testModel")
get_models(world, "testModel")

dymium-org/dymiumCore documentation built on July 18, 2021, 5:10 p.m.