readLogger_FLEXIM_F601: Read Logger File from FLEXIM F601

View source: R/logger_FLEXIM_F601.R

readLogger_FLEXIM_F601R Documentation

Read Logger File from FLEXIM F601

Description

Read Logger File from FLEXIM F601

Usage

readLogger_FLEXIM_F601(
  filename,
  sep = "\t",
  dec = ",",
  timeformat = "%d.%m.%Y %H:%M:%S",
  headerPattern = "Uhrzeit\tDruck",
  date_yyyymmdd = substr(basename(filename), 1, 8),
  dbg = TRUE
)

Arguments

filename

full path to logger file

sep

column separator

dec

decimal character

timeformat

time format string

headerPattern

pattern matching the header line

date_yyyymmdd

datestring, by default taken from the filename

dbg

if TRUE, debug messages are shown

References

http://www.flexim.com/files/tsfluxus_f601v1-5-1de_leu.pdf

Examples

# Set path to example file (contained in this package)
file <- extdataFile("FLEXIM/example_FLEXIM_F601_short.txt")
   
# Let's have a look on the file structure
writeLines(readLines(file))

## Not run:    
# Now read the file
x <- readLogger_FLEXIM_F601(file)
  
# Show the first lines
head(x)
  
# Get the meta data and show its structure
str(kwb.utils::getAttribute(x, "metadata"))

## End(Not run)

KWB-R/kwb.logger documentation built on June 18, 2022, 1:49 a.m.