View source: R/replicate_delete.R
replicate.delete | R Documentation |
replicate.delete select one of the channel with largest mean value out of multiple replicated LC-MS cahnnels, and it returns an edited data frame with no repeated channel and simplified row name.
replicate.delete(data, delete.pattern = c("_\\d", "(\\+)AcO"))
data |
Primary lipidomic data in .csv format. |
delete.pattern |
Pattern of characters that needs to be removed. |
Edited data with no repeat channels and simplified row name.
x1 <- c(1,1,1,1)
x2 <- c(1.1,1.2,1.3,1.4)
x3 <- c(1,1,1,1)
x4 <- c(2,2,2,2)
rowNames <- c('PC(14:0/14:1)+AcO_1','PC(14:0/14:1)+AcO_2','PC(16:0/16:1)_1','PC(16:0/16:1)_2')
ExampleData <- data.frame(x1,x2,x3,x4, row.names =rowNames)
replicate.delete(ExampleData,delete.pattern= c('_\\d','(\\+)AcO'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.