Skip to contents

This function transforms tour statistics into a long-format dataset for correlation analysis between unique songs, unique snippets, and the number of shows.

Usage

calculate_tour_correlation_data(tour_stats)

Arguments

tour_stats

A data frame containing tour statistics with at least 'total_unique_songs', 'total_unique_snippets', and 'total_shows' columns.

Value

A data frame in long format with columns:

  • metric_type: Type of metric ("Unique Songs" or "Unique Snippets").

  • unique_count: Count of unique songs or snippets.

  • total_shows: Number of shows corresponding to each metric type.

Examples

if (FALSE) { # \dontrun{
correlation_data <- calculate_tour_correlation_data(tour_stats)
} # }