findDupes | R Documentation |
Finds duplicate datetime values. All of the duplicate values are written to a .csv file. Many time series, especially from Environment Canada, may contain duplicate datetimes.
findDupes(obs, dupefile = "", quiet = TRUE, logfile = "")
obs |
Required. A CRHMr data frame containing obs values. |
dupefile |
Optional. The name of the output file. If omitted the dupe file will be the name of the obs data frame, followed by _dupedatetimes.csv. |
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 there are duplicate datetimes, returns TRUE
. If there are no
duplicates, returns FALSE
.
If quiet=FALSE
, the function gives a list of the duplicate datetimes.
Use this function before removing duplicates and/or interpolation and imputation.
Most importantly, use this function before writing values to an obs file. Duplicate
datetime values in an obs file will prevent CRHM from executing.
Kevin Shook
findGaps
interpolate
impute
writeObsFile
findDupes(BadLake7376, quiet=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.