Learn R Programming

Simile (version 1.3.4)

get.value.array: Get values from model components

Description

Retrieves data from the model, as either a single quantity or an array of values with the appropriate dimensions

Usage


get.value.array(instance.handle, value.name, as.enum.types)

Value

A value or array of values, from the model

Arguments

instance.handle

The handle returned by create.model(), identifying an executable model instance.

value.name

Caption path to the model component whose values are required

as.enum.types

Logical: whether to supply values as character strings, using enumerated type names if applicable. Default is false: values are numerical.

Author

Jasper Taylor

See Also

get.value.list

Examples

Run this code
get.value.array("dummy_ih", "/sector/output", FALSE)
# [1]  0.8414710  0.9092974  0.1411200 -0.7568025 -0.9589243 -0.2794155
# [7]  0.6569866  0.9893582  0.4121185 -0.5440211

Run the code above in your browser using DataLab