Learn R Programming

waveformlidar (version 1.2.0)

lpeak: lpeak

Description

This function allows you to locate where are peaks of a waveform and return a list of TRUE and FALSE TRUE represents this location is the peak.

Usage

lpeak(series, span = 3)

Arguments

series

is the input a numeric vector.

span

is the length or interval of peak finding cell, default is 3.

Value

return a boolean type data corresponding to the numeric vector.

Examples

Run this code
# NOT RUN {
data(return)
w1<-return[1,]
#w1 is numeric values represnt an waveform.
lpeak(w1,3)
w2<-return[3,]
lpeak(w2,5)
# }

Run the code above in your browser using DataLab