chk_is_date_or_numeric: Check that a vector is dates or numbers

Description Usage Arguments Examples

View source: R/chk-single.R

Description

The vector can have length 1, ie be a scalar.

Usage

1
2
3

Arguments

x

A scalar or a vector.

name

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

Examples

1
2
3
4
x <- as.Date("2001-03-01")
chk_is_date_or_numeric(x, name = "x")
x <- 5:1
chk_is_date_or_numeric(x, name = "x")

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