count_df: Count the degrees of freedom for each group

Description Usage Arguments Examples

Description

Counts the number of observations within each group for each peptide and divides by the number of replicates – defaults to one replicate per sample.

Usage

1
count_df(dat, col, rep = 1)

Arguments

dat

a data frame containing samples and observations to be counted

col

a numeric vector containing the column numbers of the group to be counted

rep

number of replicates for each sample defaults to one.

Examples

1
2
3
4
# selects the columns containing a string that identifies the group
group1 <- grep("Sample_norm", colnames(data))
# three analytical replicates were run for each
data$group1_df <- count_df(data, group1, rep = 3)

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