This function uses treeClust to build a distance. It is intended to act analagously
to daisy
and dist
.
treeClust.dist(x, ...)
Data set from which to compute distances via treeClust
.
Other argments to be passed to treeClust
.
An object of class dissimilarity
.
The treeClust
function's first argument is named dfx. This calls the same code, but by naming
the first argument x
it allows users to employ this function interchangeably with dist
and daisy
, which expect arguments named x
. This function also sets the return.dists
flag and extract the distance object so that that is the only thing returned.