Skip to contents

This function creates a multiple setlist alignment using a custom pairwise alignment approach followed the Needleman-Wunsch algorithm approach.

Usage

create_setlist_alignment(data, max_shows = 20)

Arguments

data

A data frame containing at least the following columns:

  • date: Date of the show

  • song_title: Title of the song

max_shows

Integer. Maximum number of representative shows to include in the alignment (default: 20)

Value

A data frame with aligned setlists, containing the following columns:

  • date: Date of the show

  • position: Position of the song in the aligned setlist

  • song_title: Title of the song (or NA for gaps in the alignment)

Examples

if (FALSE) { # \dontrun{
data(concert_data)
aligned_setlists <- create_setlist_alignment(concert_data, max_shows = 10)
head(aligned_setlists)
} # }