repsapply: A more general version of avereps

Description Usage Arguments Details

View source: R/repsapply.R

Description

A more general version of avereps

Usage

1
repsapply(x, ID, colwise = TRUE, func = mean)

Arguments

x

a numeric matrix

ID

function will be applied to replicates with the same ID

colwise

If TRUE, then for each column, the function will be applied to rows with identical IDs. If FALSE, then for each row, the function will be applied to columns with identical IDs.

func

the function to be applied

Details

Just like avereps averages the expression value for each sample for genes that have the same ID, repsapply applies any arbitrary function.


january3/myfuncs documentation built on April 1, 2020, 4:42 a.m.