R MATHEMATICAL FUNCTIONS
R provides a wide range of built-in mathematical functions that facilitate various mathematical operations, computations, and analyses
Rounding numbers
round() floor() ceiling() trunc() signif()
Maximum and minimum values
max() min() pmax() pmin()
Square root
sqrt()
Logarithm and exponential
log() log2() log10() log1p() exp() expm1()
Cosine, sine and tangent
cos() sin() tan() acos() asin() atan()
Matrix operations
t() %*% crossprod() outer() %x% det() solve() diag() eigen()