View source: R/privateFunctions.R
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)
1 2 | aggregrateDataForK(popdataraw, popdend, K, combine = matColMeans,
simplify = TRUE)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.