find_gaps | R Documentation |
Finds and fills gaps in a POSIXct vector.
find_gaps(times = NULL, sampling_rate = NULL)
times |
a POSIXct vector. |
sampling_rate |
A character string indicating the sampling rate of the data. Examples: '30 minutes', '1 hour', '4 seconds', '100 days'. |
POSIXct vector without gaps in the dates.
completed_dates <- find_gaps(times = df$datetime, sampling_rate = "30 min")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.