Description Usage Arguments Value Examples
Function for arithmetic mean automatically handling NAs. Calculates arithmetic mean value only when percentage of NAs is below given threshold.
1 | mea_na_thres(x, na_thres = 0.5)
|
x |
see arguments in R documentation for mean. |
na_thres |
threshold value for percentage NAs in x; between 0 and 1 |
The arithmetic mean of values in x
.
1 2 | mea_na_thres(c(2 ,3, 4, NA), na_thres=0.5)
mea_na_thres(c(2 ,3, 4, NA), na_thres=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.