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