Learn R Programming

Simile (version 1.3.4)

get.value.list: Get values from model components

Description

Retrieves data from the model, as either a single quantity or a possibly nested list of values

Usage


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

Value

A value or index-value list, 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 indices and values as character strings, using enumerated type members if applicable. Default is false: indices are integers and values are numerical.

Author

Jasper Taylor

See Also

get.value.array

Examples

Run this code
get.value.list("dummy_ih", "/runs/x", "FALSE")
# [[1]]
# [1] 40.76668
# 
# [[2]]
# [1] 37.52907
# 
# [[3]]
# [1] 33.82021
# 
# [[4]]
# [1] 29.69413

Run the code above in your browser using DataLab