expand_label_similarity | R Documentation |
Expands the similarity between labels based on a precomputed similarity matrix, 'sim_mat', with either above-threshold or below-threshold values depending on the value of the 'above' parameter.
expand_label_similarity(labels, sim_mat, threshold = 0, above = TRUE)
labels |
A vector of labels for which the similarities will be expanded. |
sim_mat |
A precomputed similarity matrix containing similarities between the unique labels. |
threshold |
A threshold value used to filter the expanded similarity values (default: 0). |
above |
A boolean flag indicating whether to include the values above the threshold (default: TRUE) or below the threshold (FALSE). |
A sparse symmetric similarity matrix with the expanded similarity values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.