I am doing a lyrical analysis of Paramore's discography using data from GeniusAPI. I have done most my analysis after going through data wrangling. I was able to create word clouds and bar charts based on sentiment analysis for each album. But now I am trying to conduct a topic model for one of these albums (Riot). To do this you have to make sure your data is a document term matrix.

Just at the first step an error message comes up when trying to do start the topic model

data(riottoken)

Error message: data set 'riottoken' not found"

Although I have used 'riottoken' for word clouds and sentiment analysis.

I tried to turn 'riottoken' (my data) into a corpus and a document term matrix using different codes and failed at this too. I will leave two examples below. Any help would be greatly appreciated.

0

There are 0 best solutions below