Skip to contents

This function compares multiple similarity measures for the same set of dyads.

Usage

compare_sim_meas(similarity_list, measure_names)

Arguments

similarity_list

A list of lists, where each inner list contains similarities for each dyad

measure_names

A vector of names for each similarity measure

Value

A data frame with all similarity measures for each dyad

Examples

topic_similarities <- list("1" = c(0.5, 0.6, 0.7), "2" = c(0.4, 0.5, 0.6))
lexical_similarities <- list("1" = c(0.6, 0.7, 0.8), "2" = c(0.5, 0.6, 0.7))
compare_sim_meas(
  list(topic_similarities, lexical_similarities),
  c("Topic", "Lexical")
)
#>   dyad Topic Lexical
#> 1    1   0.5     0.6
#> 2    1   0.6     0.7
#> 3    1   0.7     0.8
#> 4    2   0.4     0.5
#> 5    2   0.5     0.6
#> 6    2   0.6     0.7