R/mzInd2vRange.R

"mzInd2vRange" <-
function(mzInd, error=0.003) {

	mzVR <- NULL
	for (i in 1:length(mzInd)) {
		from.i <- round(i2u(mzInd[i]) * (1 - error))
		to.i <- round(i2u(mzInd[i]) * (1 + error))
		mzVR <- c(mzVR, from.i:to.i)
	}
	mzVR <- sort(unique(mzVR))
	return(mzVR)
}

Try the MassSpecWavelet package in your browser

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

MassSpecWavelet documentation built on Nov. 8, 2020, 5:36 p.m.