The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Test/Check/Verify/Investigate the Ordering of Vectors
ordering provides several functions for testing/checking/verify/investigating the ordering of vectors (numeric or otherwise).
The packages has the following tests:
is_[strictly_]*
Where *
can be one of:
monotonic
-or- sorted
whether the values
are (strictly) orderedincreasing
whether the values are in (strictly)
increasing ordereddecreasing
whehter the values are in (strictly)
decreasing orderedIn addition:
is_constant
whether all values are equalis_incremental
whether x is incremental, ordered and
equally spacedmonotoniciy
reports the degree of monotonicty.Install using the standard methods
install.packages('ordering')
# -OR-
devtools::install_github( "decisionpatterns/ordering")
The usage of the packages is probably best demonstrated by a few examples:
x <- 1:5
is_sorted(x) # TRUE
is_strictly_sorted(x) # TRUE
is_increasing(x) # TRUE
is_strictly_increasing(x) # TRUE
is_decreasing(x) # FALSE
is_strictly_decreasing(x) # FALSE
is_sorted(x) # TRUE
is_strictly_sorted(x) # TRUE
is_constant(x) # FALSE
is_incremental() # TRUE
monotonicity(x) # 2 - strictly increasing
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.