cutValue: Title cutValue

Description Usage Arguments Value Examples

View source: R/cutValue.R

Description

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

Usage

1
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

1
2
3
4
5
6
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")

takos documentation built on Jan. 13, 2021, 4:11 p.m.

Related to cutValue in takos...