keep_while: Keep values at the start of .x while .p is true

View source: R/utils.R

keep_whileR Documentation

Keep values at the start of .x while .p is true

Description

Keep values at the start of .x while .p is true

Usage

keep_while(.x, .p)

Arguments

.x

Vector

.p

Logical vector

Value

A vector the same type as .x with only leading elements where .p is TRUE.


gutenbergr documentation built on March 15, 2026, 9:06 a.m.