powered by
Fill NA values of a datetime sequence vector
fill_datetime(dttm)
filled datetime sequence vector
datetime sequence vector
incomplete_seq <- as.POSIXct("2024-01-01 00:00:00", tz = "UTC") + 0:4 * 3600 incomplete_seq[c(2, 3)] <- NA fill_datetime(incomplete_seq)
Run the code above in your browser using DataLab