stemmer: Stem Text

Description Usage Arguments Value See Also Examples

Description

stemmer - Stems a vector of text strings.

stem.words - Wrapper for stemmer that stems a vector of words.

stem2df - Wrapper for stemmer that stems a vector of text strings and returns a dataframe with the vector added..

Usage

1
2
3
4
5
6
  stemmer(text.var, rm.bracket = TRUE, capitalize = TRUE,
    warn = TRUE, ...)

  stem.words(...)

  stem2df(dataframe, text.var, stem.name = NULL, ...)

Arguments

text.var

The text variable. In stemmer this is a vector text string. For stem2df this is a character vector of length one naming the text column.

rm.bracket

logical. If TRUE brackets are removed from the text.

capitalize

logical. If TRUE selected terms are capitalized.

warn

logical. If TRUE warns about rows not ending with standard qdap punctuation endmarks.

...

Various:
stemmer - Other arguments passed to capitalizer
stem.words - Words or terms.
stem2df - Other arguments passed to stemmer

dataframe

A dataframe object.

stem.name

A character vector of length one for the stemmed column. If NULL defaults to "stem.text".

Value

stemmer - returns a character vector with stemmed text.

stem.words - returns a dataframe with a character vector with.

stem2df - returns a dataframe with a character vector with stemmed text.

See Also

capitalizer

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#stemmer EXAMPLE:
stemmer(DATA$state)
out1 <- stemmer(raj$dialogue)
htruncdf(out1, 20, 60)

#stem.words EXAMPLE:
stem.words(doggies, jumping, swims)

#stem2df EXAMPLE:
out2 <- stem2df(DATA, "state", "new")
truncdf(out2, 30)

trinker/qdap2 documentation built on May 31, 2019, 9:47 p.m.