This unexported helper is used inside of the individual plausibility component functions (e.g., plane_diff()) to validate that the location specified appears in both the input signal and seed and that the location has as many values as other locations in the seed.
valid_location(location, input, seed)The validation will return with a stop() if the location is not found in the seed or input signal. Otherwise the function will invisibly return TRUE indicating that the location is valid.
Character vector with location code; the location must appear in input and seed
Input signal data to be scored; object must be forecast
Prepared seed