It is useful to search for any instances of missing or complete values. There Are two functions that do this in naniar - any_miss and it's alias any_na. These bother under the hood call anyNA. any_complete is the complement to any_miss - it returns TRUE if there are any complete values.

any_na(x)

any_miss(x)

any_complete(x)

Arguments

x

an R object to be tested

See also

Examples

anyNA(airquality)
#> [1] TRUE
any_na(airquality)
#> [1] TRUE
any_miss(airquality)
#> [1] TRUE
any_complete(airquality)
#> [1] TRUE