R/serialize.R
write.Rd
Write a TSMP object to JSON file.
write(x, ...) # S3 method for MatrixProfile write(x, file, ...) # S3 method for PMP write(x, file, ...)
a MatrixProfile or PMP object. If not, the base::write() function will be called.
MatrixProfile
PMP
base::write()
other arguments to be passed forward.
a character string with the output filename.
character
result <- compute(mp_toy_data$data[, 1], 80) if (FALSE) { write(result, file = "output.json") }