knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

yyyymm

Lifecycle: stable Codecov test coverage R build status R-CMD-check

The goal of yyyymm:: is to make life easier with period format.

Installation

source("https://install-github.me/jbkunst/yyyymm")

Some Examples

This is a basic example which shows you how to solve a common problem:

library(yyyymm)
ym_to_date(ym = c(200902, 201912), day = 1)

Get month differences:

ym_diff(ym = c(200902, 201912), ym2 = c(200901, 201712))


ym_add_months(c(200902, 201912), months = c(1, -12))

Code of Conduct

Please note that yyyymm:: project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.



jbkunst/yyyymm documentation built on June 9, 2022, 7:40 p.m.