
Check that observed values are constant within each forecast unit
Source:R/class-forecast.R
check_observed_constant.RdHelper function that checks that all rows belonging to the same forecast
(as defined by the forecast unit) share a single observed value. Rows
where observed is NA are ignored.
If the observed values are constant within each forecast unit, the
function returns TRUE and a string with an error message otherwise.