Learn R Programming

vectools (version 0.3.0)

51_sequence_properties: Sequence Properties

Description

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

Usage

is.sttincreasing (v)
is.sttdecreasing (v)
is.nondecreasing (v)
is.nonincreasing (v)

Arguments

v

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.sttincreasing (x)
is.nondecreasing (x)
# }

Run the code above in your browser using DataLab