I want to remove stop words and using anti_join but is getting error

50 Views Asked by At

My R code is as follows: -

data_review2 <- data %>%
  unnest_tokens(word, reviewText) %>%
  anti_join(stop_words)  . 

This code is showing error like this:

Error in `auto_copy()`:
! `x` and `y` must share the same src.
ℹ `x` is a <tbl_df/tbl/data.frame> object.
ℹ `y` is the string "i|me|my|myself|we|our|ours|...".
ℹ Set `copy = TRUE` if `y` can be copied to the same source as `x` (may be
  slow).

I have tried everyting nothing works. Someone please suggest alternative

I have tried using the filter() function, made the local data as well but it is not working. I want to remove the stop words

0

There are 0 best solutions below