Description Usage Arguments Details Value Examples
sum
returns the sum of all the values present in its arguments.
1 |
... |
Numeric, complex, or logical vectors. |
na.rm |
A logical scalar. Should missing values (including NaN) be removed? |
This is a generic function: methods can be defined for it directly
or via the Summary
group generic. For this to work properly,
the arguments ...
should be unnamed, and dispatch is on the
first argument.
If all inputs are integer and logical, then the output will be an integer. If integer overflow http://en.wikipedia.org/wiki/Integer_overflow occurs, the output will be NA with a warning. Otherwise it will be a length-one numeric or complex vector.
Zero-length vectors have sum 0 by definition. See http://en.wikipedia.org/wiki/Empty_sum for more details.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.