yyyymm_calc | R Documentation |
Calculate with periods (format yyyymm)
yyyymm_calc(yyyymm, add_month = 0, add_year = 0, diff_to = NA)
yyyymm |
Input vector of periods (format yyyymm) |
add_month |
How many months to add (can be negative too) |
add_year |
How many years to add (can be negative too) |
diff_to |
Difference between date and yyyymm (format yyyymm) |
Vector of periods (format yyyymm) or number of months
yyyymm_calc(202412, add_month = 1)
yyyymm_calc(c(202411,202412,202501), add_month = -1, add_year = 1)
yyyymm_calc(202410, diff_to = 202501)
yyyymm_calc(c(202411,202412,202501,202502), diff_to = 202501)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.