There are several ways to do this, both with the R base and with common string processing packages (for example, "stringr" and "stringi").
Here are a few in the R database:
str1 <- "word1.word2" strsplit(str1, ".", fixed = TRUE) ## Add fixed = TRUE strsplit(str1, "[.]") ## Make use of character classes strsplit(str1, "\\.") ## Escape special characters
source share