track.getSimilar {RLastFM}R Documentation

API call to track.getSimilar

Description

API call to track.getSimilar

Usage

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

Arguments

track track title
artist artist name
mbid optionally, artist MBID
key API key, defaults to global variable lastkey
parse Parse the returned XML into a list?

Value

If parse = TRUE,

track track title
artist artist name
duration track duration
match extent of match statistic
artmbid mbid for the artist


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

Examples


res = track.getSimilar("Video Killed the Radio Star", "The Buggles")
res$track[1]
#[1] "Take On Me"

res$match[1]
#[1] 5.67


[Package RLastFM version 0.1-4 Index]