Return shortest unique prefixes
shortest_unique_prefixes(strings, min_length = 1)
A character vector
Minimum length of prefixes
Character vector with shortest unique prefixes
strings = c("Abra", "Abracadabra", "Simsalabim")
shortest_unique_prefixes(strings)
#> [1] "Abra" "Abrac" "S"