Description Usage Arguments Value Examples
View source: R/tweaked_functions.R
No NA -Inf Mean Returns a mean value ignoring NAs while calculating the mean and replacing -Inf with NA (which occurs if the mean is taken from only NA vales while setting na.rm = T)
1 |
x |
A vector |
Either a Number of NA
1 2 3 | mean_noNA_noInf(c(1,2))
mean_noNA_noInf(c(NA,1))
mean_noNA_noInf(c(NA,NA))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.