I Have a dataframe wich has this structure :
Note.Reco Review Review.clean.lower
10 Good Products good products
9 Nice film nice film
.... ....
The first column is the rank of the film, then the second column is the custmer's review then the 3rd column is the review with lowercase letters.
I try now to delete stop words with this :
Data_clean$Raison.Reco.clean1 <- Corpus(VectorSource(Data_clean$Review.clean.lower))
Data_clean$Review.clean.lower1 <- tm_map(Data_clean$Review.clean.lower1, removeWords, stopwords("english"))
But R studio crashes
Can you help me to resolve this problem please?
Thank you
EDIT :
#clean up
# remove grammar/punctuation
Data_clean$Review.clean.lower <- tolower(gsub('[[:punct:]0-9]', ' ', Data_clean$Review))
Data_corpus <- Corpus(VectorSource(Data_clean$Review.clean.lower))
Data_clean <- tm_map(Data_corpus, removeWords, stopwords("french"))
train <- Data_clean[train.index, ]
test <- Data_clean[test.index, ]
So I get error when I run the 2 last instructions .
See Question&Answers more detail:os