# NOT RUN {
text <- c("Rose is a rose is a rose is a rose.",
"A rose by any other name would smell as sweet.",
"Snow White and Rose Red")
text_count(text, "rose")
text_detect(text, "rose")
text_locate(text, "rose")
text_subset(text, "a rose")
# search for multiple terms
text_locate(text, c("rose", "rose red", "snow white"))
# }
Run the code above in your browser using DataLab