Question: For this homework, make sure to load the tidyverse package and the billboard dataset. library ( tidyverse ) data ( billboard ) Convert the dataset
For this homework, make sure to load the tidyverse package and the billboard dataset.
librarytidyverse
data billboard
Convert the dataset to long format and save it as bblong. Answer the questions using commands with the bblong longformat dataset: For each question, use at least one dplyr verb, and maximize the use of dplyr verbs as much as possible throughout.
Subset the bblong dataset, including only the artist," "track," and "date.entered" columns, and sort the data based on the billboard entry date.
Extract the rows for the artists "Badu, Erkyah" or "Nas" from the bblong dataset, and find their rank in the first week.
How many songs in the bblong dataset achieved a rank within the top in the first week?
What is the median number of weeks that songs stayed on the Billboard chart in the bblong dataset?
Find the artist and song that stayed the longest on the Billboard chart in the bblong dataset and determine the number of weeks.
Optional Task Find the top artists and tracks in the first week of
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
