removeTrailing: Remove trailing items from vector

View source: R/removeTrailing.r

removeTrailingR Documentation

Remove trailing items from vector

Description

Removes items from the end of a numeric vector that are equal to the value supplied

Usage

removeTrailing(x, val = 0)

Arguments

x

numeric vector

val

the trailing value to be removed

Value

Numeric vector x without trailing val

Examples

conc = c(1:30,0,0,0,0)
conc
removeTrailing(conc, val = 0)

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.