I am trying to run the code below but I am getting an error
no loop for break/next, jumping to top level.
The problem seems to be with vader_df, but I am not sure what is going wrong or how I can fix it. vader_df
is supposed to take a vector of text and return a dataframe of sentiment analysis for the text (although that clearly isn't happening here!).
Any help is appreciated.
library(vader)
library(tidyverse)
library(billboard)
data(lyrics)
lyrics <- lyrics %>%
rename(song_lyrics = lyrics)
sentiment_lyrics <- vader_df(lyrics$song_lyrics, neu_set = F)