Billboard Top 100 Trends

Assignment 6

Author

Meredith Briggs

Intro to the Billboard Top 100

The Billboard Top 100 is a list of the top 100 most popular songs on the radio. I have recently been interested in Taylor Swift’s music trends so I wanted to look at the larger picture of music trends. After scrapping data from the past 20 weeks, I will be analyzing some trends among songs and artists.

In order to scrape my data, I used the Billboard Top 100 website (https://www.billboard.com/charts/hot-100/) and my user agent was my personal identifier. I scraped the songs, artists, position on the chart, position on the chart in the previous week, weeks on chart, the peak position on the chart, and the week of the chart.

Below are the packages I will use to manipulate the data.

Data Preparation

The first column in the data is just the number row, which does not add anything to the data so I am going to remove it.

I want to be able to use the billboard_week as an actual data with the lubridate package. This means I have to clean the data by removing the “week of” string and covert the rest of the string into a date.