make_monotonic: Make a vector strictly monotonic

View source: R/make_monotonic.R

make_monotonicR Documentation

Make a vector strictly monotonic

Description

Given a vector v of length greater than 1, returns a logical vector the same length as v indicating whether each element of v is greater (or less-than, if decreasing==TRUE) than all previous elements.

Usage

make_monotonic(vect, decreasing = T)

Arguments

vect

A numeric vector.

decreasing

Should the output indicate monotonically decreasing?

Value

A logical vector.


bocinsky/PaleoCAR documentation built on Feb. 23, 2023, 12:14 p.m.