cutValue {takos}R Documentation

Title cutValue

Description

cut a region of a spectra and substitutes it with a sequence with initial value i.start and end valye i.end

Usage

cutValue(x, i.start, i.end, value.start, value.end)

Arguments

x

to be cut

i.start

index value of the starting point for the cut to be performed

i.end

index value of the ending point for the cut to be performed

value.start

desired value at point i.start

value.end

desired value at point i.end

Value

x after cut

Examples

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")


[Package takos version 0.2.0 Index]