stem_strings {textstem} | R Documentation |
Stem a Vector of Strings
Description
Stem a vector of strings.
Usage
stem_strings(x, language = "porter", ...)
Arguments
x |
A vector of strings. |
language |
The name of a recognized language (see
|
... |
Other arguments passed to |
Value
Returns a vector of stemmed strings.
Note
The stemmer requires splitting the string apart into tokens. After the stemming occurs the strings are pasted back together. The strings are not guaranteed to retain exact spacing of the original.
See Also
Examples
x <- c(
'the dirtier dog has eaten the pies',
'that shameful pooch is tricky and sneaky',
"He opened and then reopened the food bag",
'There are skies of blue and red roses too!',
NA,
"The doggies, well they aren't joyfully running.",
"The daddies are coming over...",
"This is 34.546 above"
)
stem_strings(x)
[Package textstem version 0.1.4 Index]