dot-finding_distance_to_peaks: Distance to Closest Peak or Border

.finding_distance_to_peaksR Documentation

Distance to Closest Peak or Border

Description

Finds the closest peak(or border) index for a given peak on either side

Usage

.finding_distance_to_peaks(FindingPeaksdf, rowSums, peakIndex)

Arguments

FindingPeaksdf

the resulting data frame from finding_peaks (if called separately make sure in correct form nx2: Index column and Height column)

rowSums

of the imported matrix from original picture

peakIndex

the index of FindingPeaksdf that contains the peak you want to look at

Value

dataframe 1x2 leftDist, rightDist for columns


Bott-binc/magnetoPackage2020 documentation built on Oct. 12, 2024, 7:49 p.m.