preprocess {aggutils} | R Documentation |
This does the preprocessing steps that all the agg methods have in common.
preprocess(x, q = 0)
x |
A vector of forecasts |
q |
The quantile to use for replacing 0s and 1s (between 0 and 1) |
A vector of forecasts with 0s are replaced by the qth quantile and 100s are replaced by the (1 - q)th quantile.
Assumes forecasts are in the range 0 to 100, inclusive.