ts_projection: Time Series Projection

View source: R/ts_projection.R

ts_projectionR Documentation

Time Series Projection

Description

Separates a ts_data object into input and output components for time series analysis. This function is useful for preparing data for modeling, where the input and output variables are extracted from a time series dataset.

Usage

ts_projection(ts)

Arguments

ts

matrix or data.frame containing the time series.

Value

returns a ts_projection object.

Examples

#setting up a ts_data
data(sin_data)
ts <- ts_data(sin_data$y, 10)

io <- ts_projection(ts)

#input data
ts_head(io$input)

#output data
ts_head(io$output)

daltoolbox documentation built on Nov. 3, 2024, 9:06 a.m.