dist.n.from.dm: Get the Number of Objects that were used to Build a Distance...

Description Usage Arguments Value See Also Examples

Description

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.

Usage

1
dist.n.from.dm(distObj)

Arguments

distObj

the distance object, matrix, or vector

Value

the number of objects whose distance can be represented in this

See Also

dist.n

Examples

1
2
3
4
m <- matrix(rnorm(n=40), nrow=8)
d <- dist(m)
dist.n.from.dm(d)
# 8

thomasWeise/distanceR documentation built on May 14, 2019, 7:35 a.m.