Description Usage Arguments Value See Also Examples
The function sumNA
returns the sum of all the values in its arguments.
Contrarily to sum
, it returns NA
instead of 0
when the input
contains only missing values and missing values are removed.
1 |
... |
numeric or complex or logical vectors. |
na.rm |
logical. Should missing values (including |
The sum. Returns NA
if x
contains only missing values
and na.rm = TRUE
.
sum
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.