I've been trying to calculate word frequencies with the tidytext package.
v <- "Everybody dance now! Give me the music Everybody dance now! Give me the music Everybody dance now! Everybody dance now! Yeah! Yeah! Yeah!"
v <- as.character(v)
v %>% count(words)
but I've been getting this error: Error in UseMethod("as.quoted") : no applicable method for 'as.quoted' applied to an object of class "function"
please help! thanks!