.Rmd
file. Choose the HTML file type.Insert a code chunk to read the dataset
spotify_weekly_chart
(downloaded from @Kaggle)
from the Dataset
folder. Then:
Give a name to this code chunk.
Add plain text description above the code chunk:
“The dataset contains data regarding the artist and the songs on the
Spotify global weekly chart.
For each song, the artist name, the number of stream and the peak in the
chart are reported.”
Add the following unordered list describing the variables:
Data transformation
section
to:Evaluate the dimensions of the dataframe
Create a vector containing the streams of the first top 5 songs in the chart, naming each element of the vector with the corresponding artist name.
Create a vector containing the streams of the first top 5 songs in the chart, naming each element of the vector with the corresponding song title.