Skip to contents

This function calculates a distance matrix based on the pairwise differences between sequences.

Usage

calculate_distance_matrix(sequences)

Arguments

sequences

A list of character strings representing concert setlist sequences.

Value

A distance matrix where each entry (i, j) represents the distance between sequences i and j.

Examples

seq_list <- list(showID1408 = "-5fD-UeE4OY-H]CJWhQla-mBk", showID1320 = "-5fD-^_E4OY-H]CJWhQeU-mBk", showID1336 = "5fD-UeE4OY-H]CJWhQei-mBk")
dist_matrix <- calculate_distance_matrix(seq_list)
#> Warning: longer object length is not a multiple of shorter object length
#> Warning: longer object length is not a multiple of shorter object length
#> Warning: longer object length is not a multiple of shorter object length
#> Warning: longer object length is not a multiple of shorter object length