Description Usage Arguments Value See Also Examples
Given a distance matrix or plain vector distObj
, find the
number of objects whose distances can be represented by distObj
.
This function first tries to extract of Size
attribute from the object.
If that fails, it will use dist.n
to compute the size based on
the object's length.
1 | dist.n.from.dm(distObj)
|
distObj |
the distance object, matrix, or vector |
the number of objects whose distance can be represented in this
dist.n
1 2 3 4 | m <- matrix(rnorm(n=40), nrow=8)
d <- dist(m)
dist.n.from.dm(d)
# 8
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.