R/massdiff.msimat.R

Defines functions massdiff.msimat

#' @export

massdiff.msimat <- function(d) {
  # Extract peaklist from msimat object and apply massdiff.numeric
  peaklist <- d[["peaks"]]
  if (!is.numeric(peaklist)) {
    stop("Input peak list is not numeric")
  }
  output <- massdiff.numeric(d=peaklist)
  return(output)
}
kbseah/mass2adduct documentation built on June 9, 2021, 9:20 p.m.