sumNA | R Documentation |
Wrapper around sum that defaults na.rm to TRUE
sumNA(vec)
vec |
numeric, double or integer vector |
Sum of input vector
First created in 2020-11 while working in the MARC-KC/COVID-10_MARC Repository
## Not run: sumNA(iris[['Sepal.Length']]) sumNA(c(NA, TRUE, FALSE, TRUE)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.