Skip to contents

This function identifies a specified number of shows that have the highest average similarity to other shows' setlists, effectively finding the most representative setlists in the dataset.

Usage

find_most_representative_setlists(show_sequences_all, n_representatives = 30)

Arguments

show_sequences_all

A data frame containing at least two columns:

  • sequence: A character vector of setlist sequences.

  • Other columns containing show information.

n_representatives

An integer specifying the number of representative setlists to find. Default is 30.

Value

A data frame containing the most representative setlists, with the same structure as the input data frame.

Examples

if (FALSE) { # \dontrun{
# Assuming show_sequences_all is your dataset
representative_shows <- find_most_representative_setlists(show_sequences_all, n_representatives = 30)
print(representative_shows)
} # }