ReadDates: ReadDates

View source: R/ReadDates.R

ReadDatesR Documentation

ReadDates

Description

read univariate or multivariate time series similar to the LRN format

Usage

ReadDates(FileName = NULL, InDirectory = getwd(), Silent = TRUE)

Arguments

FileName

String, name of the file to be written

InDirectory

Optional: string, name of directory the data will be saved in, default getwd()

Silent

If FALSE: Comments and messages are not printed out. Message contains the information if any column is named "Time".

Details

Internally the tibble format is used. If it can be transformed a list is given back as output as defined below. If not, the tibble frame is directly given back as output.

If no column is named "Time", the function assumes that the first column after key contains the time information. In this case the name of that column is given back as the first argument of the output.

Value

a list with following elements:

Time

time in as.Date() form of n rows and 1 column. If the user named the column any other way the name is adapted, see details.

Data

a numeric matrix containing n rows and d columns

Key

a numeric vector of length(n)

Header

d column names for Data

Author(s)

Michael Thrun

See Also

WriteDates

Examples

##todo

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