Learn R Programming

WaMaSim (version 1.0.0)

$.statelist: Extract time or budget as vectors

Description

Convenient functions to extract the time or budget.

Usage

# S3 method for statelist
$(x, name)

Arguments

x

a state list

name

name of the element to extract

Value

a vector of the time or budget, or a state

Examples

Run this code
# NOT RUN {
str(result)      # result is a 'statelist' returned from simulate_network
result$budget    # vector of budget
result$time      # vector of time
result$time.22   # state list of time 22
# }

Run the code above in your browser using DataLab