is_monotone: Check is vector is monotone

Description Usage Arguments

View source: R/utility.R

Description

Determines if the sequence of vector elements are increasing or decreasing with the option to specify strictness.

Usage

1
is_monotone(x, strict)

Arguments

x

numeric vector

strict

logical; if true then strict monotonicity is determined


wzhorton/ztools documentation built on Nov. 8, 2019, 1:28 p.m.