Write a TSMP object to JSON file.

write_json(x, ...)

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

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

Arguments

x

a MatrixProfile or PMP object.

...

other arguments to be passed forward.

file

a character string with the output filename.

Examples


result <- compute(mp_toy_data$data[, 1], 80)
# \donttest{
write_json(result, file = file.path(tempdir(), "output.json"))
# }