View source: R/vector_sum_na_rm.R
vector_sum_na_rm | R Documentation |
A re-coding of the sum function which returns NA if all values are NA. This function sums vectors together.
vector_sum_na_rm(...)
... |
numeric vectors of equal length |
numeric vector of length equal to provided vectors
tibble(x = c(NA, NA, NA), y = c(NA, 2, NA), z = c(1, NA, NA)) %>% mutate(new = vector_sum_na_rm(x, y, z))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.