knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of yyyymm::
is to make life easier with period format.
source("https://install-github.me/jbkunst/yyyymm")
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))
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.