geo.getTopTracks {RLastFM}R Documentation

API call to geo.getTopTracks

Description

API call to geo.getTopTracks

Usage

geo.getTopTracks(country, key = lastkey, parse = TRUE)

Arguments

country Country name
key API key, defaults to global variable lastkey
parse Parse the returned XML into a list?

Value

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"

Note

API is sensitive to spelling.

Author(s)

Greg Hirson <ghirson@ucdavis.edu>

References

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

Examples


res = geo.getTopTracks("Albania")
do.call("cbind", res)[1,1:3]
#          track       playcount          artist 
#  "Sex on Fire"             "6" "Kings of Leon" 

[Package RLastFM version 0.1-4 Index]