artist.getTopTags {RLastFM}R Documentation

API call to artist.getTopTags

Description

API call to artist.getTopTags

Usage

artist.getTopTags(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,

tag name of tag
count tag count, normalized to most popular tag = 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=288

Examples

res = artist.getTopTags("Wilco")

#res[[1]][1:10]
# [1] "indie"             "Alt-country"       "indie rock"       
# [4] "rock"              "alternative"       "folk"             
# [7] "americana"         "wilco"             "singer-songwriter"
#[10] "indie pop"        
#res[[2]][1:10]
# [1] "100" "99"  "59"  "45"  "43"  "33"  "22"  "9"   "7"   "7"  

[Package RLastFM version 0.1-4 Index]