mean_or_inf: Calculate the mean if there is no infinite or missing value....

View source: R/math_functions.R

mean_or_infR Documentation

Calculate the mean if there is no infinite or missing value. Return -Inf in the other case.

Description

Calculate the mean if there is no infinite or missing value. Return -Inf in the other case.

Usage

mean_or_inf(x, inaccessible_states)

Arguments

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.


dhia-gharsallaoui/watervalues documentation built on Dec. 1, 2022, 5:18 a.m.