augment_cycle_data | R Documentation |
Calculates variables necessary for WATS Plots. This the first of two functions
that needs to be called to produce WATS Plots. annotate_data()
is the second.
augment_year_data_with_month_resolution(ds_linear, date_name)
augment_year_data_with_second_resolution(ds_linear, date_name)
ds_linear |
The data.frame to containing the detailed data. |
date_name |
The variable name in |
Returns a tibble::tibble with additional variables:
cycle_tally
, proportion_through_cycle
, proportion_id
, and terminal_point_in_cycle
.
library(Wats)
ds_linear <-
Wats::county_month_birth_rate_2005_version |>
dplyr::filter(county_name == "oklahoma") |>
augment_year_data_with_month_resolution(date_name = "date")
head(ds_linear)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.