length_true: Length of consecutive TRUE

View source: R/run_length.R

length_trueR Documentation

Length of consecutive TRUE

Description

Length of consecutive TRUE

Usage

length_true(x)

Arguments

x

Logical vector.

Examples

x <- c(TRUE, TRUE, FALSE, TRUE)
length_true(x)

columbia-glacier/cgr documentation built on Jan. 17, 2024, 2:42 p.m.