despike: Replace spikes by NA in a cast

Description Usage Arguments See Also Examples

View source: R/spikes.R

Description

Replace spikes by NA in a cast

Usage

1

Arguments

x

vector of the variable of interest. It must have been recorded at approximately regular intervals (see slide() as to why).

...

passed to spikes()

See Also

spikes() for the underlying computation.

Examples

1
2
3
4
x <- c(10,10,12,11,33,15,12,11,11)
plot(x, type="l")
print(x)
despike(x)

jiho/castr documentation built on April 5, 2020, 2:12 p.m.