README.md

yyyymm

Lifecycle:
stable Codecov test
coverage R build
status

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)
#> [1] "2009-02-01" "2019-12-01"

Get month differences:

ym_diff(ym = c(200902, 201912), ym2 = c(200901, 201712))
#> [1]  1 24


ym_add_months(c(200902, 201912), months = c(1, -12))
#> [1] 200903 201812

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.