Description Usage Arguments Details Author(s) Examples
Read a data loggger .dat file into a data-frame
1 2 3 4 |
fName |
scalar string: file name or a connection, e.g. returned by unz |
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 |
Assumes that there
Thomas Wutzler, Oscar Perez Priego
1 2 3 4 5 6 7 8 9 10 | 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, file=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.