Learn R Programming

vagalumeR (version 0.1.6)

lyrics: Lyrics of a song.

Description

Gives the lyrics text of a song and the translation text, when the language of the song its not Portuguese.

Usage

lyrics(identifier, type, artist, key, message = TRUE)

Arguments

identifier

The identifier of the song.

type

The type of identifier os the song ("name" or "id").

artist

The name of the artist/band.

key

The apikey.

message

Should the function print something if the required data is not found?

Value

lyrics returns a data.frame with information about the artist, the song and the texts.

Details

The variables returned by the function are extracted with the Vagalume API.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
identifier <- "A-Day-In-The-Life"
key <- "your token"
artist <- "the-beatles"
type <- "name"
lyrics(identifier, type, artist, key)

key <- "your token"
identifier <- "3ade68b4gdc96eda3"
type <- "id"
lyrics(identifier = identifier, type = type, key = key)
# }

Run the code above in your browser using DataLab