chk_all_0_1: Check that a vector consists entirely of of 1s and 0s

Description Usage Arguments Examples

View source: R/chk-single.R

Description

Check that a vector consists entirely of of 1s and 0s

Usage

1
2
3

Arguments

x

An integer vector.

name

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

Examples

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

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