matColMeans: Aggregate a matrix by taking column means

Description Usage Arguments

View source: R/helperFunctions.R

Description

Take means over columns in a matrix, by grouping all columns listed in poplist e.g. if mat is M*N matrix and poplist is length K, returns a M*K matrix the names of poplist are used to assign names to the returned matrix

Usage

1
matColMeans(mat, poplist)

Arguments

mat

A matrix

poplist

list of which members of the original mat are in each of the new columns


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