R MATHEMATICAL FUNCTIONS
R provides a wide range of built-in mathematical functions that facilitate various mathematical operations, computations, and analyses
![Round numbers in R with round(), floor(), ceiling(), trunc() and signif() functions](/images/featured/round-r.png)
Rounding numbers
round() floor() ceiling() trunc() signif()
![max, min, pmax and pmin functions in R](/images/featured/max-min-r.png)
Maximum and minimum values
max() min() pmax() pmin()
![Square root in R with sqrt()](/images/featured/sqrt-r.png)
Square root
sqrt()
![Logarithm and exponential in R](/images/featured/log-exp-r.png)
Logarithm and exponential
log() log2() log10() log1p() exp() expm1()
![Trigonometric functions in R](/images/featured/cos-sin-tan-r.png)
Cosine, sine and tangent
cos() sin() tan() acos() asin() atan()
![Matrix operations in R. Calculate matrix algebra like multiplications, determinant, rank, decompositions, transpose or inverse](/images/featured/matrix-operations-r.png)
Matrix operations
t() %*% crossprod() outer() %x% det() solve() diag() eigen()