isMonotonicIncreasing

Syntax

isMonotonicIncreasing(X)

Arguments

X is a scalar/vector.

Details

Check whether the elements in X are monotonically increasing.

Examples

$ a = [2023.01M,2023.02M,2023.03M,2023.04M,2023.05M,2023.06M]
$ isMonotonicIncreasing(a);
true

$ a = [1,3,6,5,7,9]
$ isMonotonicIncreasing(a);
false

$ a = [1,3,3,5,7,9]
$ isMonotonicIncreasing(a);
true

$ a = [NULL,1,3,5,7,9]
$ isMonotonicIncreasing(a);
true

$ a = [1,3,5,NULL,7,9]
$ isMonotonicIncreasing(a);
false

Related functions: isMonotonicDecreasing, isMonotonic