spotify_tracks: Spotify Tracks Dataset

spotify_tracksR Documentation

Spotify Tracks Dataset

Description

This dataset contains interval data of Spotify tracks' audio features, including min-max values and trimmed intervals, as well as the microdata. It is composed of 11 audio features: duration, danceability, energy, loudness, speechiness, acousticness, instrumentalness, liveness, valence, tempo, and popularity. The aggregation of the microdata was done by track genre. From the raw Kaggle dataset, the duplicates were removed and to handle tracks associated with multiple genres, robust centroids were estimated for each genre based on the single-genre tracks, and, then, multi-genre tracks were assigned to the closest genre according to the robust Mahalanobis distance.

Usage

data(spotify_tracks)

Format

A list with the following components:

microdata

A data frame with 81033 rows and 20 columns. It contains the microdata, with individual measurements of each variable for all observations.

microdata_transformed

A data frame with 81033 rows and 20 columns. It contains the transformed microdata, with individual measurements of each variable for all observations. Logarithmic transformations were applied to "loudness" and "tempo". "duration_ms" in milliseconds was converted to "duration" in minutes. "popularity" was scaled to the range ⁠[0,1]⁠.

intData_minmax

An intData object with 111 interval-valued observations and 11 variables, constructed using min-max aggregation based on the transformed microdata.

intData_trimmed

An intData object with 111 interval-valued observations and 11 variables, constructed using trimmed aggregation (1% and 99% quantiles) based on the transformed microdata.

References

This data was retrieved from Kaggle (DOI:10.34740/KAGGLE/DSV/4372070; Spotify Tracks Dataset by Maharshi Pandya).

Loureiro, C. P., Oliveira, M. R., Brito, P., & Oliveira, L. (2026). Minimum Covariance Determinant Estimator and Outlier Detection for Interval-valued Data. arXiv preprint arXiv:2604.26769. https://arxiv.org/abs/2604.26769

Examples

data(spotify_tracks)
head(spotify_tracks$intData_minmax)
head(spotify_tracks$intData_trimmed)
head(spotify_tracks$microdata)
head(spotify_tracks$microdata_transformed)


AIDA documentation built on Nov. 4, 2026, 9:06 a.m.