regularise_time: Regularise (date)time vector

View source: R/regularise_time.R

regularise_timeR Documentation

Regularise (date)time vector

Description

This function fills in gaps in a (date)time vector and returns an equally spaced (date)time vector.

Usage

regularise_time(timeVar, sampling_int, start = NULL, end = NULL)

Arguments

timeVar

Vector containing the time data. Can be POSIXct or numeric.

sampling_int

Numeric. Sampling interval (in seconds if 'timeVar' is POSIXct).

start

Start of interval to be regularised. Can be POSIXct or numeric. If not specified, the first element of the 'timeVar' vector will be taken (default).

end

End of interval to be regularised. Can be POSIXct or numeric. If not specified, the last element of the 'timeVar' vector will be taken (default).

Value

Regularised time data.


steffenhartmeyer/lightdosimetry documentation built on Jan. 29, 2024, 12:48 p.m.