trim_leading_values: trim leading repeats of a given value from a vector

View source: R/trimLeading.R

trim_leading_valuesR Documentation

trim leading repeats of a given value from a vector

Description

trim leading repeats of a given value from a vector

Usage

trim_leading_values(x, value = 0)

Arguments

x

vector of the same type as value

value

value of which to remove leading repeats

Value

a vector trimmed of all leading values equal to value

Author(s)

Charles Morefield

Examples

trim_leading_values(c(0,0,0,1,2,3))
trim_leading_values(c('a','a','d','e'), 'a')


seandavi/sars2pack documentation built on May 13, 2022, 3:41 p.m.