spectrace_regularise_data: Regularise (date)time vector

View source: R/spectrace_regularise_data.R

spectrace_regularise_dataR Documentation

Regularise (date)time vector

Description

This function fills in gaps in a data frame containing time series data.

Usage

spectrace_regularise_data(
  lightData,
  timeVar,
  sampling_int = NULL,
  startVar = NULL,
  endVar = NULL
)

Arguments

lightData

(Grouped) data to be regularised.

timeVar

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

sampling_int

Numeric. Sampling interval (in seconds if 'timeVar' is POSIXct). If not specified, the minimum difference between consecutive rows of 'timeVar' is used (default).

startVar

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

endVar

Column indicating the end of the 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/spectrace documentation built on Dec. 4, 2024, 4:13 p.m.