chk_values_pairs: Checking function for subclasses of Pairs virtual superclass

Description Usage Arguments Details Examples

View source: R/chk-values.R

Description

Function called by chk_values_integers, chk_values_intervals, chk_values_quantities, chk_values_quarters, chk_values_months, and chk_values_dateranges,

Usage

1
2
3

Arguments

x

A list of vectors, each of which has length 2.

name

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

Details

Checks:

Examples

1
2
3
4
x <- list(c(100L, NA), c(0L, 5L), c(NA, 0L), c(5L, 50L))
chk_values_pairs(x = x, name = "x")
x <- list(as.Date(c("2001-01-01", "2002-01-01")))
chk_values_pairs(x = x, name = "x")

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