PolMine / duplicates

0 stars 0 forks source link

nchars()-method for character vector #4

Open ablaette opened 1 year ago

ablaette commented 1 year ago

In the example for the detect_duplicates,list-method, I have this snippet. Should be a method.

chars <- table(tolower(strsplit(paste(unlist(x), collapse = ""), "")[[1]]))
chars <- chars[grep("[a-zA-Z]", names(chars))]
char <- names(chars[order(chars, decreasing = FALSE)][1:20])