Description Usage Arguments Value See Also Examples
This function receives the number n
of objects to compare
and computes how many different distances will be stored in a distance
matrix, i.e., what the number of slots of a dist
object will be. The inverse function is dist.n
.
1 | dist.slots(n)
|
n |
the number of objects to compare |
the required number of slots in a distance matrix
dist.n
1 2 3 4 5 6 7 8 | dist.slots(1)
# 0 ## (no distance between 1 object)
dist.slots(2)
# 1 ## (one distance between 2 objects)
dist.slots(3)
# 3 ## (AB, AC, BC)
dist.slots(4)
# 6 ## (AB, AC, AD, BC, BD, CD)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.