
Last chance! 50% off unlimited learning
Sale ends in
cut a region of a spectra and substitutes it with a sequence with initial value i.start and end valye i.end
cutSelect(x, i.start, i.end)
x 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
# NOT RUN {
npoints=1000
x=seq(1,npoints)
y=(dnorm(x, mean=npoints/2, sd=npoints/10))
ycut=cutValue(y,10,40,0.003,0.001)
plot(y)
lines(ycut,col="red")
# }
Run the code above in your browser using DataLab