aggregrateDataForK: Aggregate a matrix of dimension M to dimension K by taking...

Description Usage Arguments

View source: R/privateFunctions.R

Description

Cut a tree for the rows of a matrix to get K tips Make the popdata that has this new set of rows by taking row means (or whatever combine is set to do)

Usage

1
2
aggregrateDataForK(popdataraw, popdend, K, combine = matColMeans,
  simplify = TRUE)

Arguments

popdataraw

A matrix

popdend

A dendrogram relating the rows of popdataraw

K

A height at which to cut the dendrogram

combine

A function to combine columns of popdataraw

simplify

Whether to simplify the labels of the dendrogram after it has been cut


danjlawson/badMIXTURE documentation built on Sept. 27, 2019, 9:11 p.m.