discard_end_while: Discard all values at the end of .x while .p is true

View source: R/utils.R

discard_end_whileR Documentation

Discard all values at the end of .x while .p is true

Description

Discard all values at the end of .x while .p is true

Usage

discard_end_while(.x, .p)

Arguments

.x

Vector

.p

Logical vector

Value

A vector the same type as .x with trailing elements removed.


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