Skip to contents

This function takes a numeric vector and replaces any negative values with zero.

Usage

lmt0(x)

Arguments

x

A numeric vector.

Value

A numeric vector with non-negative values.

Examples

lmt0(c(5, 6, 2, 0, -1))
#> [1] 5 6 2 0 0