geo.getTopTracks {RLastFM} | R Documentation |
API call to geo.getTopTracks
geo.getTopTracks(country, key = lastkey, parse = TRUE)
country |
Country name |
key |
API key, defaults to global variable lastkey |
parse |
Parse the returned XML into a list? |
If parse = TRUE,
track |
Track name |
playcount |
Reported playcount |
artist |
Artist name |
artistmbid |
Artist mbid |
rank |
rank |
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=298
res = geo.getTopTracks("Albania") do.call("cbind", res)[1,1:3] # track playcount artist # "Sex on Fire" "6" "Kings of Leon"