View source: R/readOutputUnits.R
readOutputUnits | R Documentation |
Gets units for all variables in a specified CRHM output file. If the
file is the new CRHM format, then the units are read directly from the second
line of the file. If the file is in the older CRHM format, then units are found
by matching the variables to those in the internal data frame CRHM_vars
.
readOutputUnits(outputFile, quiet = TRUE)
outputFile |
Required. A CRHM output file. |
quiet |
Optional. Suppresses display of messages, except for errors. If
you are calling this function in an R script, you will usually leave
|
If successful, returns a CRHMr data frame containing the name of
each variable and its units. If unsuccessful, returns the value FALSE
.
Kevin Shook
readOutputFile
## Not run:
units <- readOutputFile('CRHM_output_1.txt')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.