trimObs | R Documentation |
Removes values before 01:00 on the first complete day of the data, and after 00:00 on the last complete rows. Because it is destructive, this command should only be used immediately before exporting observations to a CRHM .obs file. For daily obs, removes values before the first complete row and after the last complete row.
trimObs(obs, quiet = TRUE, logfile = "")
obs |
Required. A CRHMr obs dataframe. |
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 the trimmed dataframe. If unsuccessful, returns FALSE
.
Kevin Shook
writeObsFile
BadLake.trimmed <- trimObs(BadLake7376)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.