timescale | R Documentation |
Computes characteristic time scales corresponding to exponential growth rates.
timescale(r, units)
r |
a non-negative numeric vector listing exponential growth rates. |
units |
a character string indicating units for the result. If missing, then the result is “unitless”. |
1/r
, as a difftime
if units
is not missing.
R0
, finalsize
.
r <- 10^(-2:0)
units <- "days"
stopifnot(all.equal(timescale(r), 1 / r),
all.equal(timescale(r, units), .difftime(1 / r, units)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.