| .check_time_shift.aidR | R Documentation |
Exports of overlapping time periods may be shifted by one hour, e.g. because
of daylight saving time or time zone settings. Their entries are then not
detected as near-duplicates. For each pair of formats, the number of
near-duplicates is counted with the timestamps as they are, and with the
timestamps of one format shifted by +/- 1 hour. A warning is given if a
shift yields at least min_matches near-duplicates, and more than
twice as many as without the shift. Nothing is changed in the data.
.check_time_shift.aidR(
df,
type,
col,
tol,
max_minutes = 5,
min_matches = 5,
col2 = NULL,
tol2 = NULL
)
df |
A data frame with the cleaned data of one data type. |
type |
Name of the data type (used in the warning). |
col |
Name of the column holding the value. |
tol |
Maximum difference in value between two near-duplicates. |
max_minutes |
Maximum time difference (in minutes) between two near-duplicates. |
min_matches |
Minimum number of near-duplicates with the shift to give a warning. |
col2 |
Optional name of a second column that must match as well, or |
tol2 |
Maximum difference in |
TRUE (invisibly) if a warning was given, FALSE otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.