err_tdy_quarter_label: Check and tidy quarter label

Description Usage Arguments Examples

View source: R/err_tdy.R

Description

Check that label valid, and return date of first day of quarter. Allows 0 or more spaces and lower-case q.

Usage

1

Arguments

x

A quarter label.

name

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

Examples

1
2
3
err_tdy_quarter_label(x = "2000 Q1", name = "x")
err_tdy_quarter_label(x = "2000Q1", name = "x")
err_tdy_quarter_label(x = "2000 q1", name = "x")

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