artist.getTopAlbums {RLastFM}R Documentation

API call to artist.getTopAlbums

Description

API call to artist.getTopAlbums

Usage

artist.getTopAlbums(artist, mbid = NA, key = lastkey, parse = TRUE)

Arguments

artist Name of the artist, in quotes
mbid Optionally, use the artist mbid instead of artist
key API key, defaults to global variable lastkey
parse Parse the returned XML into a list?

Value

If parse = TRUE,

album name of the album
mbid mbid of the album
playcount Reported album playcount
rank last.fm statistic. Ranks the albums of an artist. Does not correspond strictly to playcount.

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

Examples

res = artist.getTopAlbums("Wilco")
#res$album[1:10]
# [1] "Yankee Hotel Foxtrot" "Sky Blue Sky"         "A Ghost Is Born"     
# [4] "Summerteeth"          "Being There (disc 1)" "Being There (disc 2)"
# [7] "A.M."                 "Summer Teeth"         "Being There"         
#[10] "Being There [disc 1]"
#res$playcount[1:10]
# [1] "678920" "538416" "282167" "243394" "65417"  "40064"  "117113" "72469" 
# [9] "71899"  "31195" 

[Package RLastFM version 0.1-4 Index]