It's the first time that I post on Stackoverflow, I'm a student. I hope someone will be able to help me. I am trying to do sentiment analysis in R Studio and am facing vector size error:
When I try to create a Document Term Matrix using this code:
dtm2 <- as.matrix(dtm)
I get the error "Error: cannot allocate vector of size 38.3 Gb".
The dtm is the DocumentTermMatrix of a corpus that has 178884 elements, 26.7 Mb and the text consist of reviews.
I read all the other response on StackOverflow but I do not understand them and probably they don't apply to my issue. How can I increase the size of a vector in R Studio? I am using RStudio Version 1.2.5001 on a Windows 64 machine.
Is there any other information to provide?