Learn R Programming

vectools (version 0.2.0)

41_sequence_properties: Sequence Properties

Description

Functions to test basic sequence properties, excluding unique-related properties.

Usage

is.increasing (x)
is.decreasing (x)
is.nondecreasing (x)
is.nonincreasing (x)

Arguments

x

An integer/numeric vector.

Value

All functions return true or false.

See Also

Unique-Related Functions

Optimization-Related Functions

Other Sequence Functions

Examples

Run this code
# NOT RUN {
x <- c (0, 0, 1, 2)

is.increasing (x)
is.nondecreasing (x)
# }

Run the code above in your browser using DataLab