stemmer | R Documentation |
stemmer
- Stems a vector of text strings (A wrapper for the tm
package's stemDocument
.
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..
stemmer(
text.var,
rm.bracket = TRUE,
capitalize = TRUE,
warn = TRUE,
char.keep = "~~",
...
)
stem_words(...)
stem2df(dataframe, text.var, stem.name = NULL, ...)
text.var |
The text variable. In |
rm.bracket |
logical. If |
capitalize |
logical. If |
warn |
logical. If |
char.keep |
A character vector of symbols that should be kept within sentences. |
... |
Various: |
dataframe |
A dataframe object. |
stem.name |
A character vector of length one for the stemmed column. If
|
stemmer
- returns a character vector with stemmed text.
stem_words
- returns a vector of individually stemmed words.
stem2df
- returns a dataframe with a character vector with
stemmed text.
capitalizer
## Not run:
#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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.