write: Write a TSMP object to JSON file.

View source: R/serialize.R

writeR Documentation

Write a TSMP object to JSON file.

Description

Write a TSMP object to JSON file.

Usage

write(x, ...)

## S3 method for class 'MatrixProfile'
write(x, file, ...)

## S3 method for class 'PMP'
write(x, file, ...)

Arguments

x

a MatrixProfile or PMP object. If not, the base::write() function will be called.

...

other arguments to be passed forward.

file

a character string with the output filename.

Examples


result <- compute(mp_toy_data$data[, 1], 80)

write(result, file = file.path(tempdir(), "output.json"))


tsmp documentation built on Aug. 21, 2022, 1:13 a.m.