Learn R Programming

chorrrds (version 0.1.9.5)

chords_ngram: chords_ngram

Description

Builds chords ngrams for a chord datdaset.

Usage

chords_ngram(data, n = 2)

Arguments

data

dataframe. The chords dataset to exract the features from.

n

numeric. The number of grams. The default is 2 (bigram).

Value

A chords dataset added with the chords ngram.

Examples

Run this code
# NOT RUN {
{
# }
# NOT RUN {
  songs <- chorrrds::get_songs("tim-maia")
  chords <- get_chords(songs$url[4])
  chords_ngram(chords)
# }
# NOT RUN {
}
# }

Run the code above in your browser using DataLab