tag.getTopAlbums {RLastFM}R Documentation

API call to tag.getTopAlbums

Description

API call to tag.getTopAlbums

Usage

tag.getTopAlbums(tag, key = lastkey, parse = TRUE)

Arguments

tag tag
key API key, defaults to global variable lastkey
parse Parse the returned XML into a list?

Value

If parse = TRUE,

album album title
artist album artist
albmbid album mbid
artmbid artist mbid
tagcount relative tag count - top result set at 100.


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

Examples

tag.getTopAlbums("jazz")$album[1]
#[1] "Come Away With Me"

tag.getTopAlbums("jazz")$artist[1]
#[1] "Norah Jones"

[Package RLastFM version 0.1-4 Index]