View source: R/DST_WriteStream.R
DST_WriteStream | R Documentation |
Writes points from a data stream DSD object to a file or a connection.
DST_WriteStream(file, append = FALSE, ...) ## S3 method for class 'DST_WriteStream' close_stream(dsd, ...)
file |
A file name or a R connection to be written to. |
append |
Append the data to an existing file. |
... |
further arguments are passed on to |
dsd |
a |
Note: header = TRUE
is not supported for files. The header would be
added for every call for update.
Michael Hahsler
Other DST:
DSAggregate()
,
DSClassifier()
,
DSC()
,
DSOutlier()
,
DSRegressor()
,
DST_SlidingWindow()
,
DST()
,
evaluate
,
predict()
,
stream_pipeline
,
update()
set.seed(1500) stream <- DSD_Gaussians(k = 3, d = 2) writer <- DST_WriteStream(file = "data.txt", info = TRUE) update(writer, stream, n = 2) readLines("data.txt") update(writer, stream, n = 3) readLines("data.txt") # clean up close_stream(writer) file.remove("data.txt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.