get_mon | R Documentation |
Determine Monotony of Vector.
get_mon(x)
x |
(numeric) vector |
1 if monotonically increasing, -1 if monotonically decreasing, otherwise, a vector of 1 or -1 indicating increasing or decreasing status
Andre Schuetzenmeister andre.schuetzenmeister@roche.com
x1 <- seq(-1, 1, .1)
x2 <- seq(1, -1, -.1)
y <- x1^2 / 2 + x1/3 - 5
get_mon(x1)
get_mon(x2)
get_mon(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.