R/impZERO.R

Defines functions impute.ZERO

Documented in impute.ZERO

#' @title Imputation by 0.
#' 
#' @description 
#' This function performs missing values imputation by 0.
#' 
#' @param dataSet.mvs expression matrix containing abundances with MVs 
#'                         (either peptides or proteins)
#'
#' @return dataset containing complete abundances
#'  
#' @export
#' 

impute.ZERO = function(dataSet.mvs){
  
  dataSet.imputed = dataSet.mvs
  dataSet.imputed[which(is.na(dataSet.mvs))] = 0
  
  return(dataSet.imputed)
  
}

Try the imputeLCMD package in your browser

Any scripts or data that you put into this service are public.

imputeLCMD documentation built on June 10, 2022, 5:09 p.m.