WriteDates: Write Dates

View source: R/WriteDates.R

WriteDatesR Documentation

Write Dates

Description

Saves univariate or multivariate time series in daily resolution to a *.csv file similar to a *.lrn

Usage

WriteDates(FileName, TSdata, Key = c(), OutDirectory = getwd(), Comments = NULL)

Arguments

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 getwd()

Comments

A string which is inserted as a comment in the first line in the file

Details

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)

Author(s)

Michael Thrun

See Also

ReadDates

Examples

#todo

Mthrun/TSAT documentation built on Feb. 5, 2024, 11:15 p.m.