is.increasing | R Documentation |
Test if numeric values of a vector are decreasing or increasing using the radix method
is.increasing(., na.last = TRUE)
is.decreasing(., na.last = TRUE)
. |
a numeric vector |
na.last |
for controlling the treatment of NAs. If TRUE, missing values in the data are put last; if FALSE, they are put first; if NA, they are removed. |
boolean value to indicate if the values are increasing or decreasing
# example code
doy1 <- rnorm(1e3)
doy2 <- sort(doy1, decreasing = FALSE)
doy3 <- sort(doy1, decreasing = TRUE)
is.increasing(doy1)
is.decreasing(doy1)
is.increasing(doy2)
is.decreasing(doy2)
is.increasing(doy3)
is.decreasing(doy3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.