Skip to contents

Calculates the number of shows performed on each day of the week.

Usage

count_shows_by_weekday(concert_data)

Arguments

concert_data

A data frame containing concert information with columns: showID (or a unique identifier for each show) and date (in Date format)

Value

A data frame with columns: weekday (factor with levels ordered from Monday to Sunday) and count (number of shows on that weekday)

Examples

if (FALSE) { # \dontrun{
weekday_counts <- count_shows_by_weekday(concert_data)
print(weekday_counts)
} # }