treeClust produces a vector of dissimilarities, but these objects are large. This function produces a data frame of data whose inter-point distances are related to the treeClust ones, for use in, for example, k-means.
tcnewdata(obj, d.num = 1, tbl, mat, trees)Numeric matrix of data whose inter-point distances match the d1 distances computed by treeClust, and which may be useful for d2-d4 as well.
Output from a call to treeClust.
Integer, 1-4, describing dissimilarity algorithm. See treeClust.
Matrix of tree deviances and sizes, if not present in obj.
Matrix of leaf memberships, if not present in obj.
List of trees, if not present in obj (needed for d.num = 3 or 4),
Sam Buttrey, buttrey@nps.edu
See the paper by Buttrey and Whitaker. The inter-point distances of this data set "mirror" the treeClust distances, but only if they are computed in a particular non-standard way. This is experimental.
Buttrey and Whitaker, The R Journal, 7/2, 2015.
treeClust