get.value.array {Simile} | R Documentation |
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)
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. |
Value
A value or array of values, from the model
Note
Will not work on components inside variable-membership submodels. For these you should use get.value.list instead, as R's list structure is more appropriate than the array structure when not all values exist.
Author(s)
Jasper Taylor
See Also
Examples
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
[Package Simile version 1.3.3 Index]