Identifies cities where the most shows were performed, based on unique show IDs.
Usage
find_most_played_cities(concert_data, n = 15)
Arguments
- concert_data
A data frame containing concert information with columns:
showID and city
- n
Integer specifying how many top cities to return (default is 15)
Value
A data frame sorted by number of shows (descending), containing columns:
city and number of shows
Examples
if (FALSE) { # \dontrun{
top_cities <- find_most_played_cities(concert_data)
top_cities <- find_most_played_cities(concert_data, n = 10) # Show only top 10
} # }