Description Usage Arguments Value Examples
View source: R/suggest_title.R View source: R/litsearchr.functions.R
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
1 2 3 | get_tokens(text, language = "English")
get_tokens(text, language = "English")
|
text |
An input string |
language |
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
1 2 3 4 | get_tokens("On the Origin of Species", language="English")
text <- "A methodology for systematic mapping in environmental sciences"
tokens <- get_tokens(text)
tokens;
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.