Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

removeSampleInList

Remove samples/columns from list of matrixes Remove samples (ie columns) from every instance of list of matrixes. Note: This function assumes same order of columns in list-elements 'listElem' !


Description

Remove samples/columns from list of matrixes

Remove samples (ie columns) from every instance of list of matrixes. Note: This function assumes same order of columns in list-elements 'listElem' !

Usage

removeSampleInList(
  dat,
  remSamp,
  listElem = c("abund", "quant"),
  silent = FALSE,
  callFrom = NULL
)

Arguments

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

callFrom

(character) allows easier tracking of messages produced

Value

matrix including imputed values or list of final and matrix with number of imputed by group (plus optional plot)

See Also

Examples

set.seed(2019)
datT6 <- matrix(round(rnorm(300)+3,1),ncol=6,dimnames=list(paste("li",1:50,sep=""),
  letters[19:24]))
datL <- list(abund=datT6,quant=datT6,annot=matrix(nrow=nrow(datT6),ncol=2)) 
datDelta2 <- removeSampleInList(datL,remSam=2)

wrProteo

Proteomics Data Analysis Functions

v1.4.1
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.