Skip to contents

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.