Skip to contents

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.

Usage

valid_location(location, input, seed)

Arguments

location

Character vector with location code; the location must appear in input and seed

input

Input signal data to be scored; object must be forecast

seed

Prepared seed

Value

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.