Basic math

Table of Contents

Overview

*, +, -, /, ^, %%, %/%
abs, sign
acos, asin, atan, atan2
sin, cos, tan
ceiling, floor, round, trunc, signif
exp, log, log10, log2, sqrt

max, min, prod, sum
cummax, cummin, cumprod, cumsum, diff
pmax, pmin
range
mean, median, cor, sd, var
rle

cumsum(x) reference

cumsum(1:10)
 [1]  1  3  6 10 15 21 28 36 45 55