Description Usage Arguments Details Value Examples
View source: R/text_unnest_remove_stem_words.R
Takes a dataframe with a free-text column as input. Unnests words from the free text, removes stopwords, profanity, and number-only words, removes an optional custom list of words, and stems words (using hunspell) so they can be grouped better.
1 2 3 4 5 6 7 | text_unnest_remove_stem_words(
data,
text_col,
token = "words",
custom_words = c(""),
...
)
|
data |
dataframe of responses |
text_col |
name of column containing free text to be analysed |
token |
what text entity to be analysed? by default word-by-word, but other options are defined in tidytext::unnest_tokens |
Note that, although you may choose a token other than "words" (like "sentences"), the word removal and stemming expects word tokens only.
dataframe with stemmed, unnested words with removed words
1 | text_unnest_remove_stem_words(dummy_response, colnames(dummy_response)[7], "words")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.