powered by
mean of sample group
groupmean(data, group, method = c("mean", "median"), name = TRUE)
protein quantification data. column is sample. row is protein ID.
sample group information
Arithmetic mean of sample group or median of sample group. This must be (an abbreviation of) one of the strings "mean","median".
mean
median
a logical value indicated whether add "mean" or "median" in sample group name.
Kefu Liu
data(imputedData) data <- imputedData logD <- data$log2_value group <- gsub("[0-9]+","", colnames(logD)) datamean <- groupmean(logD, group, name = FALSE)
Run the code above in your browser using DataLab