mark_condition: Mark a Condition of a Specified Minimum Length

View source: R/mark_condition.R

mark_conditionR Documentation

Mark a Condition of a Specified Minimum Length

Description

Mark a Condition of a Specified Minimum Length

Usage

mark_condition(x, min_length = 1)

Arguments

x

A logical vector

min_length

minimum length, contiguous TRUE values required

Value

A logical vector

Examples

x = c(FALSE, TRUE, TRUE, FALSE, FALSE, rep(TRUE, 10), FALSE, rep(TRUE, 20))
mark_condition(x)
mark_condition(x, 2)
mark_condition(x, 5)
mark_condition(x, 15)

muschellij2/SummarizedActigraphy documentation built on Aug. 12, 2024, 5:35 p.m.