Skip to contents

This function prepares setlist sequences from concert data and song codes. It creates a data frame that associates show IDs with their corresponding encoded setlist sequences, ensuring that each song title is mapped to its unique hexadecimal code.

Usage

prepare_setlist_sequences(concert_data, codes_tour_songs)

Arguments

concert_data

A data frame containing concert information with at least the following columns:

  • showID: Numeric identifier for each show.

  • song_position: Numeric position of each song in the setlist.

  • song_title: Character string of the song title.

codes_tour_songs

A data frame containing song codes with at least the following columns:

  • song_title: Character string of the song title.

  • hex_value: Character string of the hexadecimal code for each song.

Value

A data frame with two columns:

  • showID: Character vector of show identifiers.

  • sequence: Character vector of encoded setlist sequences.

Examples

if (FALSE) { # \dontrun{
data(concert_data)
data(codes_tour_songs)
setlist_sequences <- prepare_setlist_sequences(concert_data, codes_tour_songs)
head(setlist_sequences)
} # }