maxz: The f(x) = max\{x, 0\} function

Description Usage Arguments Value Author(s) Examples

View source: R/maxz.R

Description

The f(x) = max\{x, 0\} function

Usage

1
maxz(x)

Arguments

x

Any numeric object including vectors and matrices

Value

Returns argument if it's positive, or 0 otherwise

Author(s)

N. F. Grinberg, ng414@medschl.cam.ac.uk

Examples

1
2
3
maxz(10)
maxz(-5 : 5)
maxz(matrix(-10 : 9, nrow = 4))

stas-g/funfun documentation built on July 18, 2019, 12:58 p.m.