Get the data included in a TSMP object, if any.

get_data(.mp)

Arguments

.mp

a TSMP object.

Value

Returns the data as matrix. If there is more than one series, returns a list.

Examples

mp <- tsmp(mp_toy_data$data[1:200, 1], window_size = 30, verbose = 0)
get_data(mp)
#
# TODO: Refactor
#