make_time_windows: Create iterable time windows

View source: R/make_time_windows.R

make_time_windowsR Documentation

Create iterable time windows

Description

Creates iterable time windows for a data.frame

Usage

make_time_windows(data = NULL, window_size_in_days = 3, window_step_in_days = 1)

Arguments

data

a data.frame with 2 columns. Column 1 must be a POSIXct object and column 2 must be the measurement values.

window_size_in_days

a numeric indicating the width of the window size in day units.

window_step_in_days

a numeric indicating the amount of day by which to move the window in day units.

Value

A data.frame cotaining:

window iterator by which to subset the data.frame values raw measurement data

Examples

windowed_data <- function(data = df)


edpclau/circadian-dynamics documentation built on July 1, 2024, 2:33 a.m.