by_protein: FUN by protein

Description Usage Arguments Examples

Description

Takes a data frame and performs a function on each protein group within "Master.Protein.Accessions" for specified groups of samples

Usage

1
by_protein(dat, groups, FUN = mean)

Arguments

dat

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

groups

a vector of character strings or

FUN

function argument for tapply() defaults to mean

Examples

1
2
med_groups <- c("ctrl_med", "group1_med")
protein <- by_protein(df, med_groups)

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