I am currently trying to get a wordcloud in R with a script that worked when I first used it. I am now rechecking my markdown document and got the following issue.
I am working with rtweet
to create a wordcloud for the amount of tweets on a special topic.
tokenized_tweets <- tidy_tweets %>% select(status_id, text) %>% unnest_tokens(word, text)
custom_stopwords <- tibble(lexicon = "custom", word = c("t.co", "https"))
tokenized_tweets %>%
anti_join(stop_words) %>%
anti_join(custom_stopwords) %>%
count(word) %>%
with(wordcloud(word, n, max.words = 25))
However when I use this script (which worked for me), I get the following output:
Joining, by = "word"Joining, by = "word"Error in UseMethod("as.quoted") : no applicable method for 'as.quoted' applied to an object of class "function"
Thank you for your help!