View source: R/readExportFile.R
readExportFile | R Documentation |
Reads output from a CRHM model, that has been manually exported, into a CRHMr data frame. CRHM model output can be exported in several formats. This function is intended to read in all of them. Note that because of the way that R reads in files, the variable names will have appended periods, e.g. t.1
.
readExportFile(exportFile, timezone = "", quiet = TRUE, logfile = "")
exportFile |
Required. The name of the CRHM export file to be read in. |
timezone |
Required. The name of the timezone of the data as a character string. This should be the timezone of your data, but omitting daylight savings time. Note that the timezone code is specific to your OS. To avoid problems, you should use a timezone without daylight savings time. Under Linux, you can use CST and MST for Central Standard or Mountain Standard time, respectively. Under Windows or OSX, you can use etc/GMT+6 or etc/GMT+7 for Central Standard and Mountain Standard time. DO NOT use America/Regina as the time zone, as it includes historical changes between standard and daylight savings time. |
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 a CRHMr data frame. If unsuccessful, returns the value FALSE
.
Kevin Shook
readOutputFile
readObsFile
## Not run:
brandon <- readExportFile('Brandon_export.txt', 'etc/GMT+6')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.