.finding_distance_to_peaks | R Documentation |
Finds the closest peak(or border) index for a given peak on either side
.finding_distance_to_peaks(FindingPeaksdf, rowSums, peakIndex)
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 |
dataframe 1x2 leftDist, rightDist for columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.