Skip to contents

Read Logger File from SIGMA_SD900

Usage

readLogger_SIGMA_SD900(
  filepath,
  successOnly = FALSE,
  sep = ",",
  dateformat = .defaultTimeFormat("v6")
)

Arguments

filepath

full path to input file

successOnly

if TRUE, only file entries with "SUCCESS" in column "-RESULT-" are returned. Default: FALSE

sep

column separator. Default: ","

dateformat

format of timestamp. Default: "%H:%M %m/%d/%Y"

Examples

if (FALSE) {
# set path to example file (contained in this package)
file <- extdataFile("SIGMA/example_SIGMA_SD900.csv")

# read the file
(samples <- readLogger_SIGMA_SD900(file))
  
# read only lines representing successful samples
(samplesOk <- readLogger_SIGMA_SD900(file, successOnly = TRUE))
  
# show metadata (given in attribute "metadata")
kwb.utils::getAttribute(samplesOk, "metadata")    
}