Learn R Programming

sdbuildR (version 2.0.0)

nonnegative: Check whether x is less than zero

Description

Check whether x is less than zero.

Usage

nonnegative(x)

Value

x if x is greater than 0, 0 otherwise

Arguments

x

Value

Examples

Run this code
nonnegative(NA)
nonnegative(-1)

Run the code above in your browser using DataLab