powered by
Removes stopwords from text in whichever language is specified.
Removes stop words from a text string (adapted from 'litsearchr' https://github.com/elizagrames/litsearchr/) and returns the remaining words as a vector of strings
get_tokens(text, language = "English")get_tokens(text, language = "English")
get_tokens(text, language = "English")
An input string
The language used to look up stop words (default is "English")
Returns the input text with stopwords removed.
A vector of strings consisting of the non-stop words from the 'text' input
# NOT RUN { get_tokens("On the Origin of Species", language="English") text <- "A methodology for systematic mapping in environmental sciences" tokens <- get_tokens(text) tokens; # }
Run the code above in your browser using DataLab