Package: runner 0.5.0

runner: Running Operations for Vectors

Lightweight library for rolling windows operations. Package enables full control over the window length, window lag and a time indices. With a runner one can apply any R function on a rolling windows. The package eases work with equally and unequally spaced time series.

Authors:Dawid Kałędkowski [aut, cre]

runner_0.5.0.tar.gz
runner_0.5.0.zip(r-4.7)runner_0.5.0.zip(r-4.6)runner_0.5.0.zip(r-4.5)
runner_0.5.0.tgz(r-4.6-x86_64)runner_0.5.0.tgz(r-4.6-arm64)runner_0.5.0.tgz(r-4.5-x86_64)runner_0.5.0.tgz(r-4.5-arm64)
runner_0.5.0.tar.gz(r-4.7-arm64)runner_0.5.0.tar.gz(r-4.7-x86_64)runner_0.5.0.tar.gz(r-4.6-arm64)runner_0.5.0.tar.gz(r-4.6-x86_64)
runner_0.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
runner/json (API)

# Install 'runner' in R:
install.packages('runner', repos = c('https://gogonzo.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gogonzo/runner/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

10.03 score 53 stars 6 packages 283 scripts 1.6k downloads 3 mentions 13 exports 1 dependencies

Last updated from:4697b70f73. Checks:11 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR186
linux-devel-x86_64ERROR134
source / vignettesOK189
linux-release-arm64ERROR161
linux-release-x86_64ERROR135
macos-release-arm64ERROR94
macos-release-x86_64ERROR288
macos-oldrel-arm64ERROR114
macos-oldrel-x86_64ERROR282
windows-develERROR108
windows-releaseERROR124
windows-oldrelERROR122
wasm-releaseOK107

Exports:fill_runlag_runlength_runmax_runmean_runmin_runminmax_runrun_byrunnerstreak_runsum_runwhich_runwindow_run

Dependencies:Rcpp

Apply any R function on rolling windows
Basic usage | Index-based windows | Evaluation at specific points | Varying window size and lag | NA padding | Data frames and matrices | dplyr integration | Parallel execution | Built-in functions

Last update: 2026-03-02
Started: 2020-01-14

Built-in functions
Running aggregations | min_run, max_run, sum_run, mean_run | Using idx for time-based windows | streak_run | Utility functions | lag_run | fill_run | which_run

Last update: 2026-03-02
Started: 2019-10-19

Getting started with runner
Overview | Window types | Sliding window (k) | Lag (lag) | Index-based windows (idx) | Evaluation at specific points (at)

Last update: 2026-03-02
Started: 2026-01-31

Runner examples
Unique elements in a 7-day window | Weekly trimmed mean | Prediction from rolling 2-week regression | Grouped rolling sums with uneven time gaps | Rolling distinct count by group | Grouped rolling regression with run_by | Cross-referencing another data.frame in grouped context

Last update: 2026-03-01
Started: 2019-10-19

Readme and manuals

Help Manual

Help pageTopics
Fill NA with previous non-NA elementfill_run
Lag dependent on variablelag_run
Length of running windowslength_run
Running maximummax_run
Running meanmean_run
Running minimummin_run
Running min/maxminmax_run
Set window parametersrun_by
Apply function on running windowsrunner runner.data.frame runner.default runner.grouped_df runner.matrix runner.xts
Running streak lengthstreak_run
Running sumsum_run
Running whichwhich_run
List of running windowswindow_run