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.
library(tidyverse)
data(billboard)
Convert the dataset to long format and save it as bb_long. Answer the questions using R commands with the bb_long long-format dataset: For each question, use at least one dplyr verb, and maximize the use of dplyr verbs as much as possible throughout.
Subset the bb_long 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 bb_long dataset, and find their rank in the first week.
How many songs in the bb_long dataset achieved a rank within the top 50 in the first week?
What is the median number of weeks that songs stayed on the Billboard 100 chart in the bb_long dataset?
Find the artist and song that stayed the longest on the Billboard 100 chart in the bb_long dataset and determine the number of weeks.
(Optional Task) Find the top 10 artists and tracks in the first week of 2000.
 For this homework, make sure to load the tidyverse package and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!