Description Usage Arguments Value
Apply a function to each window in sliding windows of different sizes.
1 2 | apply_slide_windows(data, f, key = NULL, w_sizes = 10, .to = ".out",
.keep_data = T, ...)
|
data |
A data.frame or list of data points to partition |
f |
function to apply to each window |
key |
Column name to use a key when partitioning, used only when data is data.frame |
w_sizes |
Sizes of the sliding windows |
.to |
Name of the column to store the function values in |
.keep_data |
whether to keep the partitioned data (defaults to TRUE) |
... |
Arguments that should be passed to the slide_window function |
A nested data.frame with data partitioned in the data column, a 'key' column containing windows keys and 'w_size' with window size and a column named after f or the value specified in .to containing the value using the function f
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.