user.getTopArtists {RLastFM}R Documentation

API call to user.getTopArtists

Description

API call to user.getTopArtists

Usage

user.getTopArtists(username, period = NA, key = lastkey, parse = TRUE)

Arguments

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?

Value

If parse = TRUE,

artist artist name
playcount playcount of artist
mbid artist mbid
rank rank of artist, usually 1:50, except for ties


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=300

Examples


a = user.getTopArtists("monkeycatfm")
#artist favoritism
a$playcount/max(a$playcount)

[Package RLastFM version 0.1-4 Index]