To stem words for text processing in R using tm package
stemDocument(text, language) – To stem the words
Library(“tm”)
Load the necessary libraries
Load the data
Use the built in function stemDocument to stem the words
library(“tm”)
text stemDocument(text, language = “english”)