tcnewdata {treeClust} | R Documentation |
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)
obj |
Output from a call to |
d.num |
Integer, 1-4, describing dissimilarity algorithm. See |
tbl |
Matrix of tree deviances and sizes, if not present in |
mat |
Matrix of leaf memberships, if not present in |
trees |
List of trees, if not present in |
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.
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.
Sam Buttrey, buttrey@nps.edu
Buttrey and Whitaker, The R Journal, 7/2, 2015.