Hi there,
Im a relative Noob to R, Ive just started Post Grad data science, and this is my first exposure to R
I am working with comments from a survey, and want to get a feel for word frequency.
I have a vector comment which contains all the words from the comments, but I want to exclude words like the, a, is etc from the analysis.
I have a vector text
text=c('cat', 'dog', 'mouse', 'the', 'and')
I have another vector exclude
exclude=c('the', 'and')
and want to create the vector text1
('cat', 'dog', 'mouse')
Ive tried subset, and a couple of other solutions Ive found online. I know its going to be a simple answer. TIA