user.getTopTracks {RLastFM}R Documentation

API call to user.getTopTracks

Description

API call to user.getTopTracks

Usage

user.getTopTracks(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,

track track name
artist artist name
playcount playcount of artist
artmbid artist mbid
rank rank of track, 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=301

Examples


a = user.getTopTracks("monkeycatfm")
#track favoritism
a$playcount/max(a$playcount)

[Package RLastFM version 0.1-4 Index]