chk_no_open_first: Check that calendar labels not open on left

Description Usage Arguments Examples

View source: R/chk-single.R

Description

Check that calendar labels not open on left

Usage

1
2
3

Arguments

x

A character vector of calender interval labels.

name

The name for x that will be used in error messages.

unit

The time unit: "year", "quarter" or "month".

Examples

1
2
3
4
5
6
7
8
9
chk_no_open_first(x = c("2000 Jan", "2005 Aug", "2006 Nov"),
                     name = "x",
                     unit = "month")
chk_no_open_first(c("2000 Q1", "2005 Q3", "2006 Q2"),
                     name = "x",
                     unit = "quarter")
chk_no_open_first(c("2000", "2005", "2006"),
                     name = "x",
                     unit = "year")

johnrbryant/demcheck documentation built on Dec. 31, 2021, 11:57 a.m.