Learn R Programming

treeClust (version 1.1-7)

tcnewdata: 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 treeClust.

d.num

Integer, 1-4, describing dissimilarity algorithm. See treeClust.

tbl

Matrix of tree deviances and sizes, if not present in obj.

mat

Matrix of leaf memberships, if not present in obj.

trees

List of trees, if not present in obj (needed for d.num = 3 or 4),

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.

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.

References

Buttrey and Whitaker, The R Journal, 7/2, 2015.

See Also

treeClust