View source: R/removeSampleInList.R
removeSampleInList | R Documentation |
Remove samples (ie columns) from every instance of list of matrixes. Note: This function assumes same order of columns in list-elements 'listElem' !
removeSampleInList(
dat,
remSamp,
listElem = c("raw", "quant", "counts", "sampleSetup"),
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
dat |
(list) main input to be filtered |
remSamp |
(integer) column number to exclude |
listElem |
(character) names of list-elements where columns indicated with 'remSamp' should be removed |
silent |
(logical) suppress messages |
debug |
(logical) display additional messages for debugging |
callFrom |
(character) allow easier tracking of message(s) produced |
This function returns a matrix including imputed values or list of final and matrix with number of imputed by group (plus optional plot)
testRobustToNAimputation
set.seed(2019)
datT6 <- matrix(round(rnorm(300)+3,1), ncol=6, dimnames=list(paste("li",1:50,sep=""),
letters[19:24]))
datL <- list(raw=datT6, quant=datT6, annot=matrix(nrow=nrow(datT6), ncol=2))
datDelta2 <- removeSampleInList(datL, remSam=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.