tcnewdata {treeClust} | R Documentation |
Create all-numeric data to mimic the inter-point distances from treeClust
Description
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.
Usage
tcnewdata(obj, d.num = 1, tbl, mat, trees)
Arguments
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 |
Details
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.
Value
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.
Author(s)
Sam Buttrey, buttrey@nps.edu
References
Buttrey and Whitaker, The R Journal, 7/2, 2015.