any_missing | R 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.
any_missing(.x, .empty_string_as_missing = FALSE)
.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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.