Learn R Programming

moderndive (version 0.7.0)

spotify_52_original: Spotify 52-Track Sample Dataset

Description

This dataset contains a sample of 52 tracks from Spotify, focusing on two genres: deep-house and metal. It includes metadata about the tracks, the artists, and an indicator of whether each track is considered popular. This dataset is useful for comparative analysis between genres and for studying the characteristics of popular versus non-popular tracks within these genres.

Usage

spotify_52_original

Arguments

Format

A data frame with 52 rows and 6 columns:

track_id

character. Spotify ID for the track. See: https://developer.spotify.com/documentation/web-api/

track_genre

character. Genre of the track, either "deep-house" or "metal".

artists

character. Names of the artists associated with the track.

track_name

character. Name of the track.

popularity

numeric. Popularity score of the track (0-100). See: https://developer.spotify.com/documentation/web-api/reference/#/operations/get-track

popular_or_not

character. Indicates whether the track is considered popular ("popular") or not ("not popular"). Popularity is defined as a score of 50 or higher which corresponds to the 75th percentile of the popularity column.

Examples

Run this code
data(spotify_52_original)
head(spotify_52_original)

Run the code above in your browser using DataLab