user.getWeeklyArtistChart {RLastFM}R Documentation

API call to user.getWeeklyArtistChart

Description

API call to user.getWeeklyArtistChart

Usage

user.getWeeklyArtistChart(username, from = NA, to = NA, key = lastkey, parse = TRUE)

Arguments

username username
from from, see user.getWeeklyChartList
to to, see user.getWeeklyChartList
key API key, defaults to global variable lastkey
parse Parse the returned XML into a list?

Value

If parse = TRUE,

artist name of the artist
artmbid mbid for the artist
playcount reported playcount

If parse = FALSE, a object of type "XMLInternalDocument" and "XMLAbstractDocument"

Note

API is sensitive to spelling.

Author(s)

Greg Hirson <ghirson@ucdavis.edu>

References

http://www.last.fm/api/show?service=281

Examples

dates = user.getWeeklyChartList("monkeycatfm")
user.getWeeklyArtistChart("monkeycatfm", from = dates[1,1], to = dates[1,2])$artist[1]
#[1] "A Tribe Called Quest"

[Package RLastFM version 0.1-4 Index]