aggregatedMean: Aggregated Mean Scores

Description Usage Arguments Value Examples

View source: R/aggregatedMean.R

Description

Aggregated Mean Scores

Usage

1

Arguments

data

a data.table containing the data, where the columns correspond to the variables and the rows to the samples

group

A list containing the grouping corresponding to the variables. If this is NULL all variables will be treated as they were in the same group and only one representative will be calculated

Value

matrix of aggregated mean values for each group x sample

Examples

1
2
3
4
5
6
7
data(qmdiab.data)
data(qmdiab.annos)
scaled.data <- scale(qmdiab.data)
aggregated.z.scores <- aggregatedMean(
  data = scaled.data,
  group = qmdiab.annos$Sub.pathway
)

krumsieklab/MoDentify documentation built on March 24, 2021, 9:01 p.m.