attribute_similarity | R Documentation |
Generate square matrices of similarity between individuals from individual attribute data
attribute_similarity(attr, type = "discrete")
attr |
Vector, individual attributes |
type |
Character, type of similarity to calculate |
The available types of similarity are "discrete"
for 1-0 similarity, "absdiff"
for negative absolute difference, and "sqdiff"
for negative squared difference. If the attribute data is not numeric, the function will default to "discrete"
.
A square matrix of similarity values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.