Learn R Programming

linear.tools (version 1.3.0)

is_decrease: check whether the vector is decreasing

Description

check whether the vector is decreasing

Usage

is_decrease(x)

Arguments

x
a numeric vector

Value

TRUE if decreasing, FALSE if npt.

Examples

Run this code
is_decrease(rev(c(1,1,1,10,10)))
is_decrease(c(1,2,1,10,10))

Run the code above in your browser using DataLab