write: Write a TSMP object to JSON file.

Description Usage Arguments Examples

View source: R/serialize.R

Description

Write a TSMP object to JSON file.

Usage

1
2
3
4
5
6
7
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

1
2
3
4
5
result <- compute(mp_toy_data$data[, 1], 80)
## Not run: 
write(result, file = "output.json")

## End(Not run)

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