Functions to work with data from https://tsort.info/ - The World's Music Charts
Work in progress! Not a finished package! Functions and function names are likely to change in future versions.
Currently implemented:
Functions to read data from https://tsort.info
- tsm_read_songs(): Wrapper around readr::read_csv to read Top 5000 songs from tsort.info, with convenient defaults (url, file name, NA coding).
- tsm_read_albums(): Wrapper around readr::read_csv to read Top 3000 albums from tsort.info, with convenient defaults.
- tsm_read_chart(): Wrapper around readr::read_csv to read full chart data from tsort.info, with convenient defaults.
- tsm_get_version(): Function to find out current file version.
Note that usage of data from tsort.info is free under the following conditions:
-
Acknowledge the source.
-
Prominently link to https://tsort.info
-
Always include version number.
Data frames that ship with the package:
- songs: Top 5000 Songs from tsort.info, 9 variables, version 2-8-0025.
- albums: Top 3000 Albums from tsort.info, 9 variables, version 2-8-0025.
- chart: Full data from tsort.info, 71141 rows, 17 variables, version 2-8-0025.
- tsm_ggbox(): ggplot2 boxplot additionally showing original data points using a slightly customized theme.
- tsm_ggbox_plotly(): turns boxplot into interactive plotly diagram, giving information on mouse-over.