View source: R/read_tsort_data.R
| tsm_read_songs | R Documentation |
tsm_read_songs reads the top 5000 songs.
A wrapper for readr::read_csv with convenient defaults, see parameters.
tsm_read_songs(
version = tsm_get_version(),
na = "unknown",
tsort_path = "https://tsort.info/csv/",
...
)
version |
The version in string format. Defaults to function reading the current version from tsort.info. Example: "2-8-0025". |
na |
How unknown years are encoded, in string format. |
tsort_path |
URL to Website. |
... |
Pass additional parameters to readr::read_csv. See ?read_csv for details. |
Note that usage of data from tsort.info is free under the following conditions:
1. Acknowledge the source.
2. Prominently link to https://tsort.info
3. Always include version number.
Other read functions:
ch2k_get_version(),
ch2k_read_albums(),
ch2k_read_songs(),
tsm_get_version(),
tsm_read_albums(),
tsm_read_chart()
## Not run:
## Read Top 5000 songs
songs <- tsm_read_songs()
## Access file version number:
attr(songs, "version")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.