augment_cycle_data {Wats} | R Documentation |
Calculates variables necessary for WATS Plots
Description
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.
Usage
augment_year_data_with_month_resolution(ds_linear, date_name)
augment_year_data_with_second_resolution(ds_linear, date_name)
Arguments
ds_linear |
The data.frame to containing the detailed data. |
date_name |
The variable name in |
Value
Returns a tibble::tibble with additional variables:
cycle_tally
, proportion_through_cycle
, proportion_id
, and terminal_point_in_cycle
.
Examples
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)
[Package Wats version 1.0.1 Index]