chk_nonzero_unique: Check that non-zero elements in an integer vector are unique

Description Usage Arguments Examples

View source: R/chk-single.R

Description

Check that non-zero elements in an integer vector are unique

Usage

1
2
3

Arguments

x

An object.

name

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

Examples

1
2
x <- c(0L, 2L, 0L, 1L, 0L)
chk_nonzero_unique(x, name = "x")

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