chk_items_increasing: Check that elements within each item are increasing or...

Description Usage Arguments Examples

View source: R/chk-single.R

Description

NAs are ignored.

Usage

1
2
3

Arguments

x

A list.

strict

Logical. Whether elements should be strictly increasing

name

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

Examples

1
2
3
4
5
6
7
8
x <- list(c(0L, c(1L, 1L, 2L), 3:1, c(NA, 5, 10)))
chk_items_increasing(x = x,
                     strict = FALSE,
                     name = "x")
x <- list(c(0L, c(1L, NA, 2L), 3:1, c(NA, 5, 10)))
chk_items_increasing(x = x,
                     strict = TRUE,
                     name = "x")

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