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