readDat | R Documentation |
Read a data logger .dat file into a data-frame
readDat(fName, nRowsFileInfo = 1, nRowsColInfo = 2,
sep = ",", ..., colClasses = rep(NA,
ncol(colInfo)), colsTimeStamp = 1,
formatTS = NULL, tz = "UTC", na.strings = c("",
"NA", "NAN", "\"NAN\""))
fName |
scalar string: file name or a connection,
e.g. returned by |
nRowsFileInfo |
integer scalar: number of lines before column information |
nRowsColInfo |
integer vector: number of lines with column description |
sep |
column separator |
... |
further arguments to |
colClasses |
see |
colsTimeStamp |
integer vector: colums with time stamp column (will be set to POSIXct |
formatTS |
format string of the timestamp columns,
see |
tz |
specify a time zone when converting to POSIXct, default: current local e.g CET, UTC |
na.strings |
see |
When providing an open connection, caller is responsible for closing it. Closed connections are closed on exit of the function.
Thomas Wutzler, Oscar Perez Priego
read81xVar
fName <- system.file(
"genData/chamberLoggerEx1_short.dat", package = "RespChamberProc")
if (nzchar(fName)) {
ds <- readDat(fName)
}
# reading first from zipped file
fName <- system.file(
"genData/SMANIE_Chamber1_26032015.zip", package = "RespChamberProc")
if (nzchar(fName)) {
ds <- readDat( unz(fName, filename = unzip(fName, list = TRUE)[1,"Name"] )
,tz = "UTC")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.