genTSExample: A function to generate an example time series

Description Usage Arguments Value Author(s)

View source: R/genTSExample.R

Description

This function generates an example time series. The dates range from 2015 to 2016 and the sampling period is half an hour. The time series can be white noise or a random walk. It can be assigned to the KTSEnv environment.

Usage

1
genTSExample(stationary = TRUE, name = "TS", InKTSEnv = TRUE)

Arguments

stationary

Generate white noise (TRUE) or a random walk (FALSE)

name

A name for the time series. It defaults to TS. When InKTSEnv is FALSE, the name is not necessary.

InKTSEnv

Assign to the environment KTSEnv (TRUE) or not (FALSE)

Value

The time series

Author(s)

Marina Saez Andreu


KarsTS documentation built on Jan. 16, 2021, 5:07 p.m.