View source: R/make_time_windows_2.R
make_time_windows_2 | R Documentation |
Creates iterable time windows for a data.frame
make_time_windows(data = NULL, window_size_in_days = 3, window_step_in_days = 1)
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. |
A data.frame cotaining:
window iterator by which to subset the data.frame values raw measurement data
windowed_data <- make_time_windows_2(data, window_size_in_days = 3, window_step_in_days = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.