user.getTopAlbums {RLastFM}R Documentation

API call to user.getTopAlbums

Description

API call to user.getTopAlbums

Usage

user.getTopAlbums(username, limit = NA, key = lastkey, parse = TRUE)

Arguments

username username
key API key, defaults to global variable lastkey
limit limit of albums to return
parse Parse the returned XML into a list?

Value

If parse = TRUE,

album album title
artist artist name
playcount playcount of tracks in album
artmbid artist mbid
albmbid album mbid
rank rank of album, usually 1:50


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

Examples


play = user.getTopAlbums("monkeycatfm")$playcount
#relative enjoyment
play/max(play)

[Package RLastFM version 0.1-4 Index]