dot-validate_exogenous: Validate future exogenous variables (if applicable) This is a...

.validate_exogenousR Documentation

Validate future exogenous variables (if applicable) This is a private function of 'nixtlar'

Description

Validate future exogenous variables (if applicable) This is a private function of 'nixtlar'

Usage

.validate_exogenous(df, h, X_df)

Arguments

df

A tsibble or a data frame with time series data.

h

Forecast horizon.

X_df

A tsibble or a data frame with future exogenous variables.

Value

Returns a vector with the exogenous variable names if the validation is successful. If the validation fails, it stops execution and returns an error message, indicating what went wrong.

Examples

## Not run: 
df <- nixtlar::electricity_exo_vars
X_df <- nixtlar::electricity_future_exo_vars
.validate_exogenous(df, h=24, X_df)

## End(Not run)


nixtlar documentation built on Oct. 30, 2024, 5:07 p.m.