embed_series: Embed each time series in a spatio-temporal data set

Description Usage Arguments Value

View source: R/st_indicators.R

Description

Embed each time series in a spatio-temporal data set

Usage

1
embed_series(df, var, k, time = "time", station_id = "station")

Arguments

df

data frame

var

a character string, the name of the variable to embed

k

a numeric, the embed size

time

a character string, the column name identifying the time of observation

station_id

a character string, the column name identifying the location of observation

Value

A data frame with extra columns var_Tm1, var_Tm2, ..., var_Tm\(k-1\)


mrfoliveira/Evaluation-procedures-for-forecasting-with-spatio-temporal-data documentation built on April 11, 2021, 10:50 a.m.