Handlers for missing values

na_starts_with(x)

na_ends_with(x)

na_elsewhere(x)

Arguments

x

A vector.

Examples

x <- c(rep(NA, 4), 10:6, NA, NA, 4:1, NA) na_starts_with(x)
#> [1] 4
na_ends_with(x)
#> [1] 1
na_elsewhere(x)
#> [1] 2