groupmean: groupmean

Description Usage Arguments Author(s) Examples

Description

mean of sample group

Usage

1
groupmean(data, group, method = c("mean", "median"), name = TRUE)

Arguments

data

protein quantification data. column is sample. row is protein ID.

group

sample group information

method

Arithmetic mean of sample group or median of sample group. This must be (an abbreviation of) one of the strings "mean","median".

name

a logical value indicated whether add "mean" or "median" in sample group name.

Author(s)

Kefu Liu

Examples

1
2
3
4
5
6
7
rm(list = ls())
library(DDPNA)
data(imputedData)
data <- imputedData
logD <- data$log2_value
group <- gsub("[0-9]+","", colnames(logD))
datamean <- groupmean(logD, group, name = FALSE)

liukf10/TEST documentation built on May 20, 2019, 12:59 a.m.