View source: R/metrics-univariate.R
n_growths | R Documentation |
Number of up/growths
n_growths(x)
x |
A numeric vector to calculate the number of growths |
set.seed(123)
x <- round(cumsum(rnorm(24)) * 100, 0)
x <- abs(x)
x
plot(x, type = "l")
n_growths(x)
n_growths(c(1, 2, 0))
n_growths(c(0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.