Learn R Programming

linear.tools (version 1.3.0)

is_increase: check whether the vector is increasing

Description

check whether the vector is increasing

Usage

is_increase(x)

Arguments

x
a numeric vector

Value

TRUE if increasing, FALSE if not

Examples

Run this code
is_increase(c(1,1,1,10,10))
is_increase(c(1,2,1,10,10))

Run the code above in your browser using DataLab