Skip to contents

detect possible duplication in a vector, ignore case, blank and special character

Usage

detect_dup(vector, index = FALSE)

Arguments

vector

vector possibly with duplication

index

return duplication index

Value

duplication sub-vector

Examples

detect_dup(c("a", "C_", "c -", "#A"))
#> [1] "a"   "#A"  "C_"  "c -"