Learn R Programming

scrobbler (version 1.0.3)

update_scrobbles: update_scrobbles

Description

Companion function to `download_scrobbles`. Only downloads the scrobbles that have been stored since you ran `download_scrobbles`.

Usage

update_scrobbles(
  data,
  timestamp_column,
  username = get_lastfm_credentials("username"),
  api_key = get_lastfm_credentials("key")
)

Value

A dataframe

Arguments

data

A dataframe outputted by `download_scrobbles`

timestamp_column

The `date_unix` column in your dataframe

username

Last.fm API username

api_key

Last.fm API key

Examples

Run this code
if (FALSE) {
mydat <- download_scrobbles(username = "your_username", api_key = "your_api_key")
update_dat <- update_scrobbles(mydat,
    "date_unix",
    username = "your_username",
    api_key = "your_api_key")
}

Run the code above in your browser using DataLab