# 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)
Run the code above in your browser using DataLab