Identifies songs that were most frequently played as opening songs in concerts,
excluding appearances as snippet as opening.
Usage
find_most_played_opening_songs(concert_data, n = NULL)
Arguments
- concert_data
A data frame containing concert information with columns:
date, city, song_title, song_position, and snippet
- n
Integer specifying how many top opening songs to return (default is all)
Value
A data frame sorted by frequency (descending), containing columns:
song_title and times_played (number of times played as opening song)
Examples
if (FALSE) { # \dontrun{
top_openers <- find_most_played_opening_songs(concert_data)
top_openers <- find_most_played_opening_songs(concert_data, n = 10) # Show top 10
} # }