get_stopwords {tidytext} | R Documentation |
Get a tidy data frame of a single stopword lexicon
Description
Get a specific stop word lexicon via the stopwords package's stopwords function, in a tidy format with one word per row.
Usage
get_stopwords(language = "en", source = "snowball")
Arguments
language |
The language of the stopword lexicon specified as a
two-letter ISO code, such as |
source |
The source of the stopword lexicon specified. Default is
|
Value
A tibble with two columns, word
and lexicon
. The
parameter lexicon
is "quanteda" in this case.
Examples
library(dplyr)
get_stopwords()
get_stopwords(source = "smart")
get_stopwords("es", "snowball")
get_stopwords("ru", "snowball")
[Package tidytext version 0.4.2 Index]