ts_growth_rate_augment: Augment Data with Time Series Growth Rates
Description
This function is used to augment a data frame or tibble with time series
growth rates of selected columns. You can provide a data frame or tibble as
the first argument, the column(s) for which you want to calculate the growth
rates using the .value parameter, and optionally specify custom names for
the new columns using the .names parameter.
A tibble that includes the original data and additional columns representing
the growth rates of the selected columns. The column names are either
automatically generated or as specified in the .names parameter.
Arguments
.data
A data frame or tibble containing the data to be augmented.
.value
A quosure specifying the column(s) for which you want to
calculate growth rates.
.names
Optional. A character vector specifying the names of the new
columns to be created. Use "auto" for automatic naming.
Author
Steven P. Sanderson II, MPH
See Also
Other Augment Function:
ts_acceleration_augment(),
ts_velocity_augment()