spells: Running spell length

View source: R/spells.R

spellsR Documentation

Running spell length

Description

Calculates the running number of consecutive non-zero values of a vector

Usage

spells(x, initial_value = NA_real_)

Arguments

x

A numeric vector

initial_value

The initial value of the spell length

Value

a vector of length x of the running number of consecutive non-zero values of x


IDEMSInternational/cdms.products documentation built on July 7, 2023, 10:13 a.m.