n_growths: Number of up/growths

View source: R/metrics-univariate.R

n_growthsR Documentation

Number of up/growths

Description

Number of up/growths

Usage

n_growths(x)

Arguments

x

A numeric vector to calculate the number of growths

Examples


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))

jbkunst/risk3r documentation built on March 19, 2024, 10:49 p.m.