View source: R/ui_model-building.R
set_half_life | R Documentation |
Indicating a non-zero value for half-life will add a decay to the marked portion of the tracer element. The decay constant is calculated from the half-life value as:
set_half_life(nm, hl, quiet = FALSE)
nm |
A |
hl |
Half-life value, in the same time unit as the observations are (or will be) given. Setting half-life to zero is equivalent to using a stable isotope (no decay used in the model). |
quiet |
Boolean for verbosity. |
lambda_decay = log(2) / half_life
Note that for correct calculations the half-life value should be given in the same time unit (e.g. hour, day) that the time unit used for observations.
A networkModel
object.
library(magrittr)
x <- new_networkModel() %>%
set_topo("32P -> root -> leaf") %>%
set_half_life(hl = 14.268)
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.