powered by
Provides sum of elements.
sum(x, na.rm=FALSE)
Return value depends on argument x. If vector, returns the same as
x
sum. If matrix, returns vector containing the sum of each column.
sum
numeric or logical to be summed
logical scalar. If TRUE, remove missing values
TRUE
P. Roebuck proebuck1701@gmail.com
This is an S4 generic function.
sum(1:9) sum(matrix(1:9, 3, 3))
Run the code above in your browser using DataLab