Skip to contents

Creates a summary of setlist data for each show, including the number of unique songs and a list of all songs played.

Usage

generate_setlist_data(data, tour_order = NULL)

Arguments

data

A data frame in concertData format, containing at least 'showID', 'tour', 'date', and 'song_title' columns.

tour_order

A data frame with a 'tour' column specifying the desired order of tours (optional).

Value

A data frame with columns:

  • showID: Unique identifier for each show

  • tour: Name of the tour (as a factor if tour_order is provided)

  • date: Date of the show

  • songs: Number of songs played in the show

  • song_list: Semicolon-separated list of all songs played in the show

Examples

if (FALSE) { # \dontrun{
setlist_summary <- generate_setlist_data(concert_data)
setlist_summary_ordered <- generate_setlist_data(concert_data, tour_order)
} # }