powered by
Sum a vector, or return NA if it has no values
sum_or_na(x)
The sum of the finite values of x, or NA if there are none.
x
NA
A numeric vector. Non-finite values (NA, Inf, -Inf) are ignored.
Inf
-Inf