Skip to contents

This function identifies concerts that feature the highest number of songs played from a given concert dataset. It aggregates concerts by their date, city, country, and venue to determine which had the most songs performed.

Usage

find_longest_setlists(concert_data)

Arguments

concert_data

A data frame containing concert information with the following columns: - `song_position`: The position of each song in the setlist. - `date`: The date of the concert. - `city`: The city where the concert took place. - `country`: The country where the concert took place. - `venue`: The venue of the concert.

Value

A data frame containing details of concerts with the maximum number of songs played, including columns for `date`, `city`, `country`, `venue`, and `Number of Songs Played`.

Examples

if (FALSE) { # \dontrun{
data <- read.csv("u2concerts.csv")
longest_setlists <- find_longest_setlists(data)
print(longest_setlists)
} # }