artist.getTopTracks {RLastFM} | R Documentation |
API call to artist.getTopTrack
artist.getTopTracks(artist, mbid = NA, key = lastkey, parse = TRUE)
artist |
Name of the artist, in quotes |
mbid |
Optionally, use the artist mbid instead of artist |
key |
API key, defaults to global variable lastkey |
parse |
Parse the returned XML into a list? |
If parse = TRUE,
track |
Track title |
playcount |
Reported playcount |
rank |
Rank. Not necessarily in order of playcount. |
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=277
res = artist.getTopTracks("Wilco") #res[[1]][1:10] # [1] "Kamera" "Jesus, etc." # [3] "War On War" "Heavy Metal Drummer" # [5] "I Am Trying to Break Your Heart" "Pot Kettle Black" # [7] "I'm the Man Who Loves You" "Impossible Germany" # [9] "Ashes of American Flags" "Radio Cure" #res[[2]][1:10]