# Return the primary and secondary Double Metaphone encodings for a character vector.
str1 <- c("Jyothi", "Jyoti")
str2 <- c("POLLACHI", "BOLLACHI")
DoubleMetaphone(str1)
DoubleMetaphone(str2)
## Not run:
# # Issue a warning in case of non-ASCII characters.
# str3 <- c("J\xf5geva", "Jogeva")
# DoubleMetaphone(str3) ## End(Not run)
Run the code above in your browser using DataLab