chk_integer_in_range: Check all elements of an integer vector are within a given...

Description Usage Arguments Examples

View source: R/chk-composite.R

Description

NAs are permitted

Usage

1
2
3

Arguments

x

An integer vector.

min

Minimum permissible value. An integer.

max

Maximum permissible value. An integer.

name

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

Examples

1
2
3
4
chk_integer_in_range(x = c(1L, 7L, NA),
                     min = 1L,
                     max = 12L,
                     name = "x")

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