user.getTopTracks {RLastFM} | R Documentation |
API call to user.getTopTracks
user.getTopTracks(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,
track |
track name |
artist |
artist name |
playcount |
playcount of artist |
artmbid |
artist mbid |
rank |
rank of track, 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=301
a = user.getTopTracks("monkeycatfm") #track favoritism a$playcount/max(a$playcount)