sumNA: sumNA

View source: R/sumNA.R

sumNAR Documentation

sumNA

Description

[Stable]

Wrapper around sum that defaults na.rm to TRUE

Usage

sumNA(vec)

Arguments

vec

numeric, double or integer vector

Value

Sum of input vector

Creation notes

First created in 2020-11 while working in the MARC-KC/COVID-10_MARC Repository

Examples

## Not run: 
sumNA(iris[['Sepal.Length']])
sumNA(c(NA, TRUE, FALSE, TRUE))

## End(Not run)

MARC-KC/marcR documentation built on June 2, 2022, 9:31 p.m.