Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started