text_stem_words: Stem words before analysis

Description Usage Arguments Value Examples

View source: R/text_stem_words.R

Description

Stem words before analysis

Usage

1
text_stem_words(unnest_data, word_col = "word")

Arguments

unnest_data

dataframe with unnested free text data (a row per word, eg. as prepared by tidytext::unnest_tokens)

word_col

column name containing word tokens

Value

dataframe with words replaced with their porter stemmed version

Examples

1
text_stem_words(data.frame(doc_id = c(1, 2, 3, 4), word = c('test', 'testing', 'tester', 'word')), word_col = 'word')

DataS-DHSC/consultations documentation built on Jan. 28, 2022, 1:56 a.m.