View source: R/math_functions.R
mean_or_inf | R Documentation |
-Inf
in the other case.Calculate the mean if there is no infinite or missing value.
Return -Inf
in the other case.
mean_or_inf(x, inaccessible_states)
x |
numeric vector whose mean is wanted. |
inaccessible_states |
Numeric in [0,1]. Tolerance of inaccessible states. For example if equal to 0.9 we delete the state if this states is inaccessible by 90% of scenarios. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.