parse_peaks: Parse peaks

Description Usage Arguments Value Author(s)

View source: R/parsing.R

Description

Searches for peaks and valleys in load data from an object of class 'LoadCellHauls'.

Usage

1
parse_peaks(data, span = 0.05, peakdist = 10, peakheight = 200)

Arguments

data

Object of class 'LoadCellHauls'

span

Loess smoothing factor; defaults to .05

peakdist

The minimum distance between peaks in index values

peakheight

The minimum height of peaks in LBF

Value

An object of class 'LoadCellPeaks', containing all the attributes of object class 'LoadCellHauls', plus the following attributes:

span

The span used to apply Loess smoothing.

peakdist

The peak distance parameter used to apply Loess smoothing.

peakheight

The peak height parameter used to apply Loess smoothing.

peak_analysis

Boolean indicating if peak analysis was successful; if False, the remaining attributes will not be present.

smoothed_peaks

A dataframe containing the Index and Load for peaks located in the smoothed data for the top trapcount peaks.

smoothed_valleys

A dataframe containing the Index and Load for valleys located in the smoothed data corresponding to peaks located.

smoothed

A dataframe containing the Index and Load for each load after Loess smoothing was applied.

actual_peaks

A dataframe containing the Index and Load values for actual peaks corresponding to the smoothed peaks located within the load cell data.

Author(s)

Bill DeVoe, William.DeVoe@maine.gov


mainedmr/loadcell documentation built on Nov. 13, 2019, 12:34 a.m.