Prepare Setlist Sequences from Concert Data
Source:R/tourSetlistAlignment.R
prepare_setlist_sequences.Rd
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.
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.