find_peaks: Find peaks

Description Usage Arguments Details Examples

Description

Find local maxima in a chromatogram

Usage

1
find_peaks(chr_data, maximum_peaks = 1)

Arguments

chr_data

Chromatogram data imported by read_unicorn or read_res

maximum_peaks

Maximum number of peaks to find.

Details

This function searches for local maxima along the curves of chromatograms. Because the search can yield even slightest spikes as peaks, the hits are sorted in a descending order based on the UV absorbance the the top maximum_peaks (default 1) are reported.

The algorithm is modified from the findPeaks function in quantmod package.

Examples

1
2
3
4
## Not run: 
peaks <- find_peaks(chr_data, 5)

## End(Not run)

cihanerkut/unicoRn documentation built on May 13, 2019, 7:29 p.m.