embed.fullextent: Modified version of embed

View source: R/smoothxts.r

embed.fullextentR Documentation

Modified version of embed

Description

Modified version of embed.

Usage

embed.fullextent(x, timesteps = timesteps)

Arguments

x

a numeric vector, matrix or time series

timesteps

integer. Number of timestpes used for smoothing.

Details

By adding the last timesteps-1 entries at the end of the result of embed, the length of the output is equal to the length of x. Otherwise the length of the output would be length(x)-(timesteps-1)

Value

A matrix containing the embedded time series x

Author(s)

Simon Frey

See Also

embed

Examples

x <- 1:10
embed.fullextent(x,3)

freysimon/TigeR documentation built on April 18, 2024, 4:57 p.m.