top.peaks: Returns the top peaks from sorted data frame

Description Usage Arguments Value

Description

Returns a specified number of peaks from the top of the peak data frame. If data frame doesn't have that many rows, then returns entire data frame.

Usage

1
top.peaks(peak.df, npeaks = min(100, nrow(peak.df)))

Arguments

peak.df

Peak data frame

npeaks

Number of peaks to return (default 100)

Value

A subset of the peak data frame with the specified number of peaks


agentlans/PeakSorter documentation built on May 14, 2019, 5:23 p.m.