any_missing: wrapper arround 'stop_if(any(is.na(.x)))'. If...

any_missingR Documentation

wrapper arround 'stop_if(any(is.na(.x)))'. If '.empty_string_as_missing' is set to TRUE, it also treats empty strings as missing values. Otherwise, is just checks for NA values.

Description

wrapper arround 'stop_if(any(is.na(.x)))'. If '.empty_string_as_missing' is set to TRUE, it also treats empty strings as missing values. Otherwise, is just checks for NA values.

Usage

any_missing(.x, .empty_string_as_missing = FALSE)

Arguments

.x

vector of e.g. characters

.empty_string_as_missing

if TRUE, empty strings are treated as missing. If TRUE, .x must be a character or factor vector


shane-kercheval/rtools documentation built on July 7, 2022, 8:31 a.m.