config_plan: configure control plan

Description Usage Arguments Value Examples

Description

allows start & stop of controls to be set, depends on controls available in config file

Usage

1
config_plan(l_config, t_strt, t_stop, control_id, add = FALSE)

Arguments

l_config

list of config parameters

t_strt

vector of start times

t_stop

vector of stop times

control_id

vector of control_ids for the times

add

whether to add the new controls to exisiting ones, default FALSE to replace

Value

list with modified control_plan

Examples

1
2
3
4
5
6
7
8
l_config <- read_config()
l_config2 <- config_plan(l_config, t_strt=1, t_stop=15, control_id='irs_pyr')
l_config2 <- config_plan(l_config, t_strt=c(1,15), t_stop=c(10,20), control_id='irs_pyr')
l_config2 <- config_plan(l_config, t_strt=c(1,11), t_stop=c(10,20), control_id=c('irs_pyr','irs_ops'))
l_config2 <- config_plan(l_config, t_strt=c(1,11), t_stop=c(10,20), control_id=c('irs_pyr','irs_ddt'))
plot_sim( run_sim(l_config=l_config2))
#to create a blank config_plan
#l_config$control_plan <- l_config$control_plan[0,]

AndySouth/resistanceGame documentation built on May 5, 2019, 6:01 a.m.