R/mzV2indRange.R

"mzV2indRange" <-
function(mzV, error=0.003) {

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

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.