WriteDates | R Documentation |
Saves univariate or multivariate time series in daily resolution to a *.csv file similar to a *.lrn
WriteDates(FileName, TSdata, Key = c(), OutDirectory = getwd(), Comments = NULL)
FileName |
String, name of the file to be written |
TSdata |
[1:n,1:(d+1)] dataframe of tibble of data n cases in rows, d variables in columns, may contain NaN, first column is the time in as.Date() format |
Key |
A numeric vector of length(n) |
OutDirectory |
Optional: String, name of directory the data will be saved in, default |
Comments |
A string which is inserted as a comment in the first line in the file |
Comfortably writes univariate or multivariate time series in daily resolution to a file similar to the LRN Format. The header is always the named columns of the data.frame or tibble.
The length of Key
has to be ncol(Data)
or ncol(Data[[1]])
respectively.
If Key
is empty it is replaced by a vector 1:ncol(Data)
Michael Thrun
ReadDates
#todo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.