I tried to run the following code with the following data:
library(dplyr)
library(janeaustenr)
library(tidytext)
book_words <- austen_books() %>%
unnest_tokens(word, text) %>%
count(book, word, sort = TRUE)
For this, I get this error message:
Error in count(., book, word, sort = TRUE) :
unused argument (sort = TRUE)
What do I have to change for the code to work?