monotonic_check | R Documentation |
Check if a vector is monotonically increasing/decreasing
monotonic_check(v, direction = "increasing")
v |
Numeric vector |
direction |
String, either "increasing" or "decreasing" |
TRUE/FALSE
v1 <- sample(1:100,size=10)
v2 <- 1:10
monotonic_check(v1)
monotonic_check(v2)
monotonic_check(v2, direction="decreasing")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.