View source: R/st_yoy_metrics.R
| calculate_yoy_growth | R Documentation |
Helper function to calculate YoY growth rates from the output of st_yoy_metrics
calculate_yoy_growth(yoy_data, baseline_year = NULL)
yoy_data |
Output from st_yoy_metrics |
baseline_year |
The year to use as baseline (default: earliest year) |
A tibble with growth rates relative to baseline year
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.