Learn R Programming

spsurvey (version 4.0.0)

sorted: Internal Function: Determine if a Vector is Sorted

Description

This function determines whether the input set of values is a nondecreasing sequence.

Usage

sorted(x)

Arguments

x

Vector of values.

Value

Logical variable, where TRUE = sorted and FALSE = not sorted.