checks and diagnoses NA presence in vectors

chk_dups(x)

Arguments

x

A vector of any type

Value

A vector indicating duplicated entries, or length 0 vector if none

Examples

x <- c(3,4,5,6,6,7,7,8,3,9)
chk_dups(x)
#> [1] 5 7 9