user.getTopArtists {RLastFM} | R Documentation |
API call to user.getTopArtists
user.getTopArtists(username, period = NA, key = lastkey, parse = TRUE)
username |
username |
period |
overall | 7day | 3month | 6month | 12month, defaults to overall |
key |
API key, defaults to global variable lastkey |
parse |
Parse the returned XML into a list? |
If parse = TRUE,
artist |
artist name |
playcount |
playcount of artist |
mbid |
artist mbid |
rank |
rank of artist, usually 1:50, except for ties |
If parse = FALSE,
a object of type "XMLInternalDocument" and "XMLAbstractDocument"
API is sensitive to spelling.
Greg Hirson <ghirson@ucdavis.edu>
http://www.last.fm/api/show?service=300
a = user.getTopArtists("monkeycatfm") #artist favoritism a$playcount/max(a$playcount)