chk_items_no_na: Check that not items have NAs, except where specified in...

Description Usage Arguments Examples

View source: R/chk-single.R

Description

Check that not items have NAs, except where specified in 'except' argument

Usage

1
2
3
chk_items_no_na(x, except, name)

err_items_no_na(x, except, name)

Arguments

x

A list.

except

A list of integer vectors, each of which is length 2.

name

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

Examples

1
2
3
4
x <- list(c(0L, NA, 1L), 3:1, c(NA, "b", "c"), 1L)
chk_items_no_na(x = x,
                except = list(c(1L, 2L), c(3L, 1L)),
                name = "x")

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