Skip to contents

A function which rrturns either the input value (if positive) or zero (if negative)

Usage

modp(x)

Arguments

x

a numberic vector

Value

a numeric vector with negative values replaced with 0

Details

A fucntion which returns a version of x with negative values replacd with 0