find_gaps: Fill Gaps in the data

View source: R/find_gaps.R

find_gapsR Documentation

Fill Gaps in the data

Description

Finds and fills gaps in a POSIXct vector.

Usage

find_gaps(times = NULL, sampling_rate = NULL)

Arguments

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'.

Value

POSIXct vector without gaps in the dates.

Examples

completed_dates <- find_gaps(times = df$datetime, sampling_rate = "30 min")


edpclau/circadian-dynamics documentation built on Aug. 25, 2023, 12:18 p.m.