remove.stopwords | R Documentation |
Removes stop words for a string the language of which is known
remove.stopwords(str, lang = "auto", fallback = "English")
str |
A string or a vector of strings which to delete the stop words from |
lang |
Either:
|
fallback |
Fallback language in case |
A strings (or a vector, depending on str
) corresponding to the string/s str
without stop words for the language/s lang
.
# Multiple strings in different languages
remove.stopwords(str = c(Gibberish = 'dadas',
Catalan = 'Adeu amic meu',
Irish = 'Slan a chara',
French = 'Je suis en Allemagne',
German = 'Eich liebe Deutschland'),
# Various ways of indicating the language
lang = c(NA, 'cata', 'Iris', 'fr', 'deu'),
# Yet another way
fallback = 'english'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.