valid_location | R Documentation |
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)
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.