powered by
cut a region of a spectra and substitutes it with a sequence with initial value i.start and end valye i.end
cutValue(x, i.start, i.end, value.start, value.end)
to be cut
index value of the starting point for the cut to be performed
index value of the ending point for the cut to be performed
desired value at point i.start
desired value at point i.end
x after cut
# NOT RUN { npoints=1000 x=seq(1,npoints) y=(dnorm(x, mean=npoints/2, sd=npoints/10)) ycut=cutSelect(y,10,40) plot(y) lines(ycut,col="red") # }
Run the code above in your browser using DataLab