colMeansByGroups: Calculate column averages in row groups

View source: R/gseaPlot.R

colMeansByGroupsR Documentation

Calculate column averages in row groups

Description

Calculate column averages in row groups

Usage

colMeansByGroups(m, groups)

Arguments

m

matrix n x m

groups

vector of size n of numbers from 1 to k

Value

matrix k*m of column averages by groups


ctlab/phantasus documentation built on Oct. 11, 2024, 4:11 p.m.