R Math Functions
R includes exp, log, sin, cos, abs, floor, ceiling, round, cumsum and prod. Most work on whole vectors.
Example
x <- c(1, 4, 9)
print(sqrt(x)); print(cumsum(x)); print(prod(x)); print(log(exp(2)))Exercise
Running total.
(x)Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.