chk_increasing: Check that elements in a vector of numbers or dates are...

Description Usage Arguments Examples

View source: R/chk-composite.R

Description

chk_increasing checks that each value is equal to or greater than the one before it; chk_strictly_increasing checks that each value is greater than the one before it.

Usage

1
2
3
4
5
6
7

Arguments

x

A vector of dates or numbers.

name

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

Examples

1
2
3
4
x <- c(1:4, 4)
chk_increasing(x, name = "x")
x <- 1:5
chk_strictly_increasing(x, name = "x")

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