abs(x)
"numeric"
or
"complex"
.
Missing values (
NA
s) are allowed.
Mod(x)
.
This function will be used as the default method for classes that do not inherit a specific method for the function or for the Math group of functions. The result will retain the class and the attributes. If this behavior is not appropriate, the designer of the class should provide a method for the function or for the Math group
This is a member of the
Math
group of generic functions.
abs(rnorm(10)) # vector of length 10 abs(matrix(rnorm(10), 2)) # 2 by 5 matrix