R/rawToSpectra.R

Defines functions rawToSpectra

Documented in rawToSpectra

rawToSpectra <- function(mz, I){
	
  d <- vector(mode = "list", length = ncol(I))
  
  for (i in 1:ncol(I)){
    d[[i]] <- createMassSpectrum(mz, I[,i]) 
  }
  
  names(d) <- colnames(I)
  
  return(d)

}

Try the MALDIrppa package in your browser

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

MALDIrppa documentation built on March 29, 2022, 1:05 a.m.