Description Usage Arguments Value See Also Examples
Sum of Vector Elements with alternative empty-set definition
1 |
x |
numeric, complex or logical vector |
na.rm |
logical. Should missing values (including NaN) be removed? |
scalar
sum of all values in x
. Different to sum
, the
sum of an empty set is undefined (see example). This is helpful for aggregating count data
across observations that are nested in groups and for some groups all observations are missing
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.