Description Usage Arguments Examples
View source: R/de_system_analysis.R
Given a solved system, a strain number and a lower and upper threshold, compute the time it takes to grow from the one to the other. Returns NA if that growth did not occur in the system.
1 | calc_growth_time(ss, strain_id, lower, upper)
|
ss |
A solved system as produced by run_system |
strain_id |
The number of strain whose growth rates are of interest |
lower |
The lower threshold - the number where the growth that needs to be tracked started |
upper |
The upper threshold - the growth is tracked until this threshold is reached |
1 2 3 4 5 6 7 8 9 | ss <- run_system(get_scenario('tc_Simple_1_2'),1)
calc_growth_time(ss, 2, 2, 100)
#147
calc_growth_time(ss, 2, 2, 1000)
#235
calc_growth_time(ss, 3, 2, 1000)
#NA
calc_growth_time(ss, 3, 2, 5)
#150
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.