artist.getTopAlbums {RLastFM} | R Documentation |
API call to artist.getTopAlbums
artist.getTopAlbums(artist, mbid = NA, key = lastkey, parse = TRUE)
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? |
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"
API is sensitive to spelling.
Greg Hirson <ghirson@ucdavis.edu>
http://www.last.fm/api/show?service=287
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"