0

enter image description here

When I use the unnest_tokens() command it creates a column called word, as you can see I add colnames() after the pipe function after unnesting and it returns word as a column.

When I save it as a dataframe the column has no name and I have to rename that column.

1 Answers1

0

Found the answer here dplyr::select function clashes with MASS::select

This happens more than I would like it to. I think we should have better error messaging if we can determine user installed MASS in their R session?

Using dplyr::select worked.

  • You might check out the **conflicted** package, since this is a problem with both `select()` and `lag()`: https://github.com/r-lib/conflicted I have code to choose my preferred `select()` and `lag()` in my .Rprofile file, and then I namespace if I want the other one. – Julia Silge Jan 27 '20 at 14:07