geo.getTopArtists {RLastFM}R Documentation

API call to geo.getTopArtists

Description

API call to geo.getTopArtists

Usage

geo.getTopArtists(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,

artist Artist name
playcount Reported playcount
mbid 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=297

Examples

res = geo.getTopArtists("Canada")
do.call("cbind", res)[1,1:2]
#      artist   playcount 
# "Radiohead"      "4103" 



[Package RLastFM version 0.1-4 Index]