ReadTS: Read TS file

View source: R/ReadTS.R

ReadTSR Documentation

Read TS file

Description

Reads in a TS file.

Usage

ReadTS(FileName, InDirectory = getwd(), ForceNumeric = FALSE)

Arguments

FileName

Filename of *.TS file

InDirectory

InDirectory where *.TS file is, default: Current dir

ForceNumeric

TRUE: saves numeric format of series, FALSE: Accepts text

Value

List with

Series

[1:n,1:2] matrix of Time and Seriesval, 1st column is Unix time or time in seconds, unique index from first column, Series contained in Column 2, without blanks

FurtherTexts

[1:n,1:c] vector or matrix, containing the further text rows. Only returned if FurtherTexts are in the *.TS file

Header

[1:(2+c)] vector of column names for Time and SeriesVal plus c column names of further text rows that can be in the *.TS file. If no further texts are present c is 0

Comments

[1:k] vector, strings of all lines of Comments, without the leading "#"

Author(s)

Michael Thrun

See Also

WriteTS

Examples

WriteTS("ElectricityBRD", ElectricityBRD$Time, ElectricityBRD$Mrd_KWh, Comments="Electricity production in BRD")
V=ReadTS("ElectricityBRD")
V$Series
V$Header
V$Comments

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