Write a TSMP object to JSON file.
write(x, ...) # S3 method for MatrixProfile write(x, file, ...) # S3 method for PMP write(x, file, ...)
x | a |
---|---|
... | other arguments to be passed forward. |
file | a |
result <- compute(mp_toy_data$data[, 1], 80) #> Error in compute(mp_toy_data$data[, 1], 80): Assertion on 'query_ref' failed. One of the following must apply: #> * Must be of class 'NULL', not 'double' #> * Must be of length >= 4, but has length 0. # \donttest{ write(result, file = file.path(tempdir(), "output.json")) #> Error in write(result, file = file.path(tempdir(), "output.json")): object 'result' not found # }