set_data: Set/changes the data included in TSMP object.

Description Usage Arguments Value Examples

View source: R/misc.R

Description

This may be useful if you want to include the data lately or remove the included data (set as NULL).

Usage

1
set_data(.mp, data)

Arguments

.mp

a TSMP object.

data

a matrix (for one series) or a list of matrices (for two series).

Value

Returns silently the original TSMP object with changed data.

Examples

1
2
mp <- tsmp(mp_toy_data$data[1:200, 1], window_size = 30, verbose = 0)
mp <- set_data(mp, NULL)

franzbischoff/tsmp documentation built on March 9, 2020, 6:01 a.m.