readEquidistantCsv: readEquidistantCsv

Description Usage Arguments Value Author(s)

View source: R/readLoggerFile.R

Description

read subset of data from csv files where rows have and equidistant time step

Usage

1
2
3
4
5
readEquidistantCsv(fileName, startTime = numeric(0), 
    endTime = numeric(0), n_max = Inf, nRowsHeader = 0L, 
    nRowsColumnHeader = 0L, ..., fCreateTimestamp = fSetTimestampTimezone, 
    timezone = character(), fReadCsv = read_csv, 
    col_types = NULL)

Arguments

fileName

fileName to read

startTime

POSIXct of minimum starting time to read

endTime

POSIXct of maximum ending time to read

n_max

maximum number of rows to read, by default all. will be ignored if endTime is specified

nRowsHeader

number of header rows above column names

nRowsColumnHeader

number of header rows below column names e.g. with unit information for each column

...

further arguments to read_csv

fCreateTimestamp

a function(data, timezone) -> data to update or create column timestamp. Argument timezone must have a default. The default assumes the properly formatted timestamp column already in file and sets the timezone if given to this function.

timezone

if specified, this timezone is provided to fCreateTimestamp, otherwise the functions default is used.

fReadCsv

variant of read_csv used when reading the determined lines , e.g. read_csvDouble

col_types

see read_csv

Value

tibble read from file. If nRowsColumnHeader > 0 then attribute 'columnHeader' contains a dataframe with those rows below the column names. If nRowsHeader > 0 then attribute 'header' contains a string vector with those initial lines.

Author(s)

Thomas Wutzler


bgctw/equidIO documentation built on Nov. 17, 2020, 5:05 a.m.