Description Usage Arguments Details Value Examples
This function reads CSV-alike TOA5 file. It assumes that TIMESTAMP column and those ending with _TMx and _TMn contain time stamps in "YYYY-MM-DD HH:MM:SS" format.
1 |
file |
the name of the file which the data are to be read from. If it
does not contain an absolute path, the file name is relative
to the current working directory, Alternatively,
|
fileEncoding |
character string: if non-empty declares the encoding used
on a file (not a connection) so the character data can be re-encoded. See
|
It relies heavily on as.POSIXct
for time stamp recognition as
used internally by read.table
. Therefore it is important to
make sure correct time zone is set so you won't get unexpected conversions.
One approach is to use Sys.setenv(TZ='GMT')
in the code. Use something
like this if you chose to stick to local time zone but decided to neglect DST
switch.
No column name sanitation is performed. As a result, column names are likely
not syntactically valid if arrays were used in CR Basic. To reference such
columns, use backquote marks, e.g., obj@data$`Air(1)`
.
"NAN" is treated as NA.
an S4 class csdf
1 2 3 | Sys.setenv(TZ='GMT')
fpath <- system.file("extdata", "Station_Daily.dat", package="csdf")
obj <- read.toa5(fpath)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.