artist.getSimilar {RLastFM}R Documentation

API call to artist.getSimilar

Description

API call to artist.getSimilar

Usage

artist.getSimilar(artist, limit = NA, key = lastkey, parse = TRUE)

Arguments

artist Name of the artist, in quotes
limit Limit number of results. Defaults to maximum value of 100
key API key, defaults to global variable lastkey
parse Parse the returned XML into a list?

Value

If parse = TRUE, If it is a LIST, use

name Artist name
mbid Artist mbid
match last.fm metric for artist similarity

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

Examples

res = artist.getSimilar(artist = "Wilco")

#res$name[1:10]
#[1] "Jeff Tweedy"                "Billy Bragg & Wilco"       
#[3] "Uncle Tupelo"               "Loose Fur"                 
#[5] "Golden Smog"                "My Morning Jacket"         
#[7] "The Minus 5"                "Son Volt"                  
#[9] "Ryan Adams & The Cardinals" "The Jayhawks"              

[Package RLastFM version 0.1-4 Index]