by_group: Peptide average or standard deviation

Description Usage Arguments Examples

Description

Peptide level average or sd of a group of samples

Usage

1
by_group(dat, col, FUN = median)

Arguments

dat

a data frame with peptide level data as rows and samples in columns

col

a numeric vector containing the column numbers of samples within the group

Examples

1
2
3
# selects the columns containing a string that identifies the group
group1 <- grep("Sample_norm", colnames(data))
group1_sd <- by_group(df, group1, FUN = sd)

tsoleary/proteomixr documentation built on July 19, 2019, 8:37 a.m.