make_time_windows_2: Create iterable time windows

View source: R/make_time_windows_2.R

make_time_windows_2R 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

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.

data

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

Value

A data.frame cotaining:

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

Examples

windowed_data <- make_time_windows_2(data, window_size_in_days = 3, window_step_in_days = 1)


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