writeObsFile | R Documentation |
Writes a CRHM dataframe to an obs file. It will not allow ea values - they must be converted to RH values first. The CRHM filter command to convert RH values to ea is added automatically to the header of the .obs file.
writeObsFile(
obs,
obsfile = "",
obsfilter = NULL,
datetimeFormat = NULL,
comment = "",
quiet = TRUE,
logfile = ""
)
obs |
Required. A CRHMr obs data frame. |
obsfile |
Required. Name for file to hold observations. |
obsfilter |
Optional. Default is |
datetimeFormat |
Optional. If not specified (the default), the datetime is written as " Excel, then the datetime is written as an Excel datetime. |
comment |
Optional. A comment to be added to the header of the .obs file. If omitted, the header will consist of the name of the obs data frame followed by created by CRHMr function writeObsFile. |
quiet |
Optional. Suppresses display of messages, except for errors. If you
are calling this function in an R script, you will usually leave |
logfile |
Optional. Name of the file to be used for logging the action. Normally not used. |
If successful, returns TRUE
. If unsuccessful, returns FALSE
.
If there are missing values in the obs dataframe, the last line of the header will contain the line $$ Missing.
Kevin Shook
trimObs
changeEatoRH
## Not run:
# write sample obs dataframe to .obs file
result <- writeObsFile(BadLake7376, 'BadLake7376.obs')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.