R/RemoveMissing.R

Defines functions RemoveMissing

Documented in RemoveMissing

#' A data processing function for removing missing values
#'
#' @param data Comma-separated (*.csv), QC file format. It should contain a Precursor column and the metrics columns.
#' @return A data frame that processes using \code{input.sanity.check} function.
#' @export
#' @importFrom stats complete.cases
#' @examples
#' # The data is "S9Site54" which is defined in the package.
#' data <- RemoveMissing(S9Site54)

RemoveMissing <- function(data = NULL){

  data <- data[complete.cases(data),] #work with complete cases
  return(data)
}

Try the MSstatsQC package in your browser

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

MSstatsQC documentation built on Nov. 8, 2020, 5:30 p.m.