Learn R Programming

astrochron (version 1.4)

peak: Identify maxima of peaks in series, filter at desired threshold value

Description

Identify maxima of peaks in any 1D or 2D series, filter at desired threshold value.

Usage

peak(dat,level,plateau=F,genplot=T,verbose=T)

Arguments

dat

1 or 2 dimensional series. If 2 dimesions, first column should be location (e.g., depth), second column should be data value.

level

Threshold level for filtering peaks. By default all peak maxima reported.

plateau

Output plateau points not evaluated? If T, identified peaks will not be output. (T or F)

genplot

Generate summary plots? (T or F)

verbose

Verbose output? (T or F)

Examples

Run this code
ex=cycles(genplot=FALSE)
peak(ex,level=0.02)

Run the code above in your browser using DataLab