matColSums: Aggregate a matrix by taking column sums

Description Usage Arguments Value

View source: R/helperFunctions.R

Description

Sums 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
matColSums(mat, poplist)

Arguments

mat

A matrix of dimension M by N

poplist

list of which members (column identifiers) of the original mat are in each of the new columns, as returned by idsToList.

Value

A matrix on dimension M by K.


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