inst/doc/cstime.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(cstime)
library(magrittr)

## -----------------------------------------------------------------------------
date_to_isoyear_c('2021-01-01')

## -----------------------------------------------------------------------------
isoyearweek_to_isoyear_c("2021-02")
isoyearweek_to_isoweek_c("2021-02")

## -----------------------------------------------------------------------------
seasonweek_to_isoweek_n(10)
isoweek_to_seasonweek_n(1)  

Try the cstime package in your browser

Any scripts or data that you put into this service are public.

cstime documentation built on May 31, 2023, 9:27 p.m.