Learn R Programming

rray (version 0.0.0.9000)

rray_abs: Absolute value

Description

Compute the absolute value.

Usage

rray_abs(x)

Arguments

x

A vector, matrix, array or rray.

Details

If x is logical, an integer is returned.

See Also

Other math functions: remainder, rray_clip, rray_maximum, rray_multiply_add, rray_sign

Examples

Run this code
# NOT RUN {
rray_abs(-1)

x <- rray(1:5 * -1L, c(5, 1))

rray_abs(x)

rray_abs(TRUE)

# }

Run the code above in your browser using DataLab