is_sorted {hutilscpp} | R Documentation |
Is a vector sorted?
Description
Is a vector sorted?
Usage
is_sorted(x, asc = NA)
isntSorted(x, asc = NA)
Arguments
x |
An atomic vector. |
asc |
Single logical. If |
Value
is_sorted
returns TRUE
or FALSE
isntSorted
returns 0
if sorted or the first position
that proves the vector is not sorted
[Package hutilscpp version 0.10.5 Index]