Answered step by step
Verified Expert Solution
Link Copied!

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.
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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

3. Define cultural adaptation.

Answered: 1 week ago

Question

What are the best practices for managing a large software project?

Answered: 1 week ago

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago