yyyymm_calc: Calculate with periods (format yyyymm)

View source: R/tools.R

yyyymm_calcR Documentation

Calculate with periods (format yyyymm)

Description

Calculate with periods (format yyyymm)

Usage

yyyymm_calc(yyyymm, add_month = 0, add_year = 0)

Arguments

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)

Value

Vector of periods (format yyyymm)

Examples

yyyymm_calc(202412, add_month = 1)
yyyymm_calc(c(202411,202412,202501), add_month = -1, add_year = 1)

explore documentation built on April 3, 2025, 9 p.m.