| abs {base} | R Documentation |
These functions compute miscellaneous mathematical functions. The naming follows the standard for computer languages such as C or Fortran.
abs(x) sqrt(x)
x |
a numeric vector |
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
Arithmetic for simple, log for logarithmic,
sin for trigonometric, and Special for
special mathematical functions.
xx <- -9:9 plot(xx, sqrt(abs(xx)), col = "red") lines(spline(xx, sqrt(abs(xx)), n=101), col = "pink")