readLogger_SIGMA_SD900: Read Logger File from SIGMA_SD900

View source: R/logger_SIGMA.R

readLogger_SIGMA_SD900R Documentation

Read Logger File from SIGMA_SD900

Description

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"

References

http://www.hach.com/asset-get.download.jsa?id=7639983273

Examples

## Not run: 
# 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")    

## End(Not run)

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