pinch_sides: Re-index the edges of vector by threshold Merge the outside...

pinch_sidesR Documentation

Re-index the edges of vector by threshold Merge the outside edges of a vector if they are less then the provides threshold.

Description

Re-index the edges of vector by threshold Merge the outside edges of a vector if they are less then the provides threshold.

Usage

pinch_sides(x, ind, thres)

Arguments

x

vector of values

ind

current index values

thres

threshold to evaluate x

Value

a vector of length(x) containing grouping indexes


NOAA-OWP/hyAggregate documentation built on Aug. 13, 2022, 1:36 p.m.