Estimate growth rates
Usage
growth_rate(x, ...)
# S3 method for default
growth_rate(x, ...)
# S3 method for data.frame
growth_rate(x, n, time, by = NULL, ...)
Arguments
- x
Numeric vector containing counts or related metric to estimate growth rates. It can also be a data frame containing
n
andtime
variables (for data frames only).- ...
Further arguments passed to other methods.
- n
Variable name of count data. Quoted or unquoted.
- time
Variable name of the date variable (any format that is sortable). Quoted or unquoted.
- by
Grouping variable
Value
When input value is a vector, then a vector of the same length that input parameter is returned. When input value is a data.frame, tibble or data.table, a data.table is returned.
Details
More info about this growth rate equation can be seen next ...