err_tdy_month_label: Check and tidy month label

Description Usage Arguments Examples

View source: R/err_tdy.R

Description

Check that label valid, and return date of first day of month. Allows 0 or more spaces is case insensitive.

Usage

1

Arguments

x

A month label.

name

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

Examples

1
2
3
err_tdy_month_label(x = "2000 Jan", name = "x")
err_tdy_month_label(x = "2000Jan", name = "x")
err_tdy_month_label(x = "2000 JAN", name = "x")

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