Learn R Programming

psc (version 1.2.0)

modp: modp

Description

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

Usage

modp(x)

Value

a numeric vector with negative values replaced with 0

Arguments

x

a numberic vector

Details

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