chk_member_unit: Check that 'x' is a valid time unit

Description Usage Arguments Examples

View source: R/chk-member.R

Description

Check that 'x' is a valid time unit

Usage

1
2
3

Arguments

x

A string - ie a character vector of length 1.

name

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

Examples

1
2
x <- "year"
chk_member_unit(x = x, name = "x")

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