Skip to contents

Check whether all elements given are sorted in non-descending order

Usage

is_nondesc(...)

Arguments

...

anything!

Value

TRUE if the elements are sorted in non-descending order, otherwise FALSE

Author

Kelly Sovacool sovacool@umich.edu

Examples


is_nondesc(1, 2, 3)
#> [1] TRUE
is_nondesc(c(1, 2), 3)
#> [1] TRUE
is_nondesc(6, 4, 1)
#> [1] FALSE
is_nondesc("a", "b", "c")
#> [1] TRUE
is_nondesc(c("z", "y"))
#> [1] FALSE