{
  "_id": "6acec523d9de2f3f33fc7bb5",
  "Type": "Package",
  "Package": "roll",
  "Title": "Rolling and Expanding Statistics",
  "Version": "1.2.2",
  "Authors@R": "person(\"Jason\", \"Foster\", , \"jason.j.foster@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Fast and efficient computation of rolling and expanding\nstatistics for time-series data. The default algorithm in the\n'roll' package is an online algorithm that, as observations are\nadded to and removed from a window, updates statistics and\ndiscards observations from memory (Welford, 1962,\n<doi:10.1080/00401706.1962.10490022>; West, 1979,\n<doi:10.1145/359146.359153>); as a result, the amount of time\nto evaluate each function is significantly shorter because the\ncomputation is independent of the window size. In contrast, an\noffline algorithm requires all observations in memory to\ncalculate the statistic for each window, so users can trade\nspeed for accuracy and select the offline algorithm by setting\nthe online argument to FALSE. Quantiles are computed from the\ninverse of the empirical distribution function with averaging\nat discontinuities (Hyndman and Fan, 1996,\n<doi:10.1080/00031305.1996.10473566>). Use cases include\nrolling summary statistics, time-varying relationships between\nvariables, and feature engineering for forecasting and signal\nconstruction. The package supports rolling and expanding\nwindows, weights, and handling of missing values via the\nmin_obs, complete_obs, and na_restore arguments. The\nimplementation uses 'RcppParallel' to parallelize the online\nalgorithms across columns and the offline algorithms across\nwindows.",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/jasonjfoster/roll",
  "BugReports": "https://github.com/jasonjfoster/roll/issues",
  "Config/roxygen2/old_usage": "TRUE",
  "Config/roxygen2/version": "8.0.0",
  "Encoding": "UTF-8",
  "SystemRequirements": "GNU make",
  "Config/pak/sysreqs": "cmake make",
  "Repository": "https://fastverse.r-universe.dev",
  "Date/Publication": "2026-09-02 23:36:12 UTC",
  "RemoteUrl": "https://github.com/jasonjfoster/roll",
  "RemoteRef": "HEAD",
  "RemoteSha": "c8197fece6ccefbefabb71102d216046cac47ca4",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-13 23:44:15 UTC",
    "User": "root"
  },
  "Author": "Jason Foster [aut, cre]",
  "Maintainer": "Jason Foster <jason.j.foster@gmail.com>",
  "_user": "fastverse",
  "_type": "src",
  "_file": "roll_1.2.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/02d7afb3d84252371435fd1605e52d3831ab3d918309513907ef18874b3ad991",
  "_filesize": 247008,
  "_sha256": "02d7afb3d84252371435fd1605e52d3831ab3d918309513907ef18874b3ad991",
  "_expires": "2027-01-21T23:56:17.000Z",
  "_created": "2026-10-13T23:44:15.000Z",
  "_published": "2026-10-13T23:56:19.736Z",
  "_buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115600035474,
      "time": 228,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11860072639"
    },
    {
      "job": 115600035477,
      "time": 215,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11859572636"
    },
    {
      "job": 115600035510,
      "time": 195,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11860201665"
    },
    {
      "job": 115600035573,
      "time": 226,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11859362051"
    },
    {
      "job": 115600035774,
      "time": 160,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11860262416"
    },
    {
      "job": 115600035551,
      "time": 458,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11859573856"
    },
    {
      "job": 115600035516,
      "time": 207,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11860033724"
    },
    {
      "job": 115600035515,
      "time": 448,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11860316700"
    },
    {
      "job": 115598903672,
      "time": 206,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11860131770"
    },
    {
      "job": 115600035609,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11859023800"
    },
    {
      "job": 115600035455,
      "time": 287,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11859497094"
    },
    {
      "job": 115600035500,
      "time": 244,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11860017581"
    },
    {
      "job": 115600035572,
      "time": 182,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11859576868"
    },
    {
      "job": 115600035604,
      "time": 263,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11859926986"
    },
    {
      "job": 115600035589,
      "time": 196,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11859587736"
    }
  ],
  "_upstream": "https://github.com/jasonjfoster/roll",
  "_commit": {
    "id": "c8197fece6ccefbefabb71102d216046cac47ca4",
    "author": "Jason Foster <jason.j.foster@gmail.com>",
    "committer": "Jason Foster <jason.j.foster@gmail.com>",
    "message": "Version: 1.2.2\n",
    "time": 1788392172
  },
  "_maintainer": {
    "name": "Jason Foster",
    "email": "jason.j.foster@gmail.com",
    "login": "jasonjfoster",
    "description": "",
    "uuid": 7542282
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "zoo",
      "role": "Suggests"
    }
  ],
  "_owner": "jasonjfoster",
  "_selfowned": false,
  "_usedby": 10,
  "_updates": [
    {
      "week": "2025-50",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 2
    },
    {
      "week": "2026-07",
      "n": 2
    },
    {
      "week": "2026-09",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 2
    },
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-19",
      "n": 1
    },
    {
      "week": "2026-22",
      "n": 3
    },
    {
      "week": "2026-23",
      "n": 7
    },
    {
      "week": "2026-25",
      "n": 1
    },
    {
      "week": "2026-36",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "algorithms",
    "rcpp",
    "statistics",
    "openblas",
    "cpp",
    "openmp"
  ],
  "_stars": 118,
  "_contributors": [
    {
      "user": "jasonjfoster",
      "count": 285,
      "uuid": 7542282
    },
    {
      "user": "yutannihilation",
      "count": 1,
      "uuid": 1978793
    }
  ],
  "_userbio": {
    "uuid": 105517888,
    "type": "organization",
    "name": "fastverse",
    "followers": 34,
    "description": "An Extensible Suite of High-Performance and Low-Dependency Packages for Statistical Computing and Data Manipulation in R"
  },
  "_downloads": {
    "count": 2817,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/roll"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/jasonjfoster/roll",
  "_searchresults": 361,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/roll.html"
  ],
  "_homeurl": "https://github.com/jasonjfoster/roll",
  "_realowner": "jasonjfoster",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2016-04-03"
    },
    {
      "version": "1.0.1",
      "date": "2016-04-05"
    },
    {
      "version": "1.0.2",
      "date": "2016-04-07"
    },
    {
      "version": "1.0.3",
      "date": "2016-05-08"
    },
    {
      "version": "1.0.4",
      "date": "2016-07-05"
    },
    {
      "version": "1.0.5",
      "date": "2016-08-29"
    },
    {
      "version": "1.0.6",
      "date": "2016-09-19"
    },
    {
      "version": "1.0.7",
      "date": "2017-05-01"
    },
    {
      "version": "1.1.1",
      "date": "2018-08-11"
    },
    {
      "version": "1.1.2",
      "date": "2019-02-06"
    },
    {
      "version": "1.1.3",
      "date": "2019-10-04"
    },
    {
      "version": "1.1.4",
      "date": "2020-01-17"
    },
    {
      "version": "1.1.5",
      "date": "2020-07-05"
    },
    {
      "version": "1.1.6",
      "date": "2020-07-13"
    },
    {
      "version": "1.1.7",
      "date": "2024-04-05"
    },
    {
      "version": "1.2.0",
      "date": "2025-08-22"
    },
    {
      "version": "1.2.1",
      "date": "2026-03-28"
    }
  ],
  "_exports": [
    "roll_all",
    "roll_any",
    "roll_cor",
    "roll_cov",
    "roll_crossprod",
    "roll_idxmax",
    "roll_idxmin",
    "roll_lm",
    "roll_max",
    "roll_mean",
    "roll_median",
    "roll_min",
    "roll_prod",
    "roll_quantile",
    "roll_scale",
    "roll_sd",
    "roll_sum",
    "roll_var"
  ],
  "_help": [
    {
      "page": "roll-package",
      "title": "Rolling and Expanding Statistics",
      "topics": [
        "roll-package",
        "roll"
      ]
    },
    {
      "page": "roll_all",
      "title": "Rolling All",
      "topics": [
        "roll_all"
      ]
    },
    {
      "page": "roll_any",
      "title": "Rolling Any",
      "topics": [
        "roll_any"
      ]
    },
    {
      "page": "roll_cor",
      "title": "Rolling Correlations",
      "topics": [
        "roll_cor"
      ]
    },
    {
      "page": "roll_cov",
      "title": "Rolling Covariances",
      "topics": [
        "roll_cov"
      ]
    },
    {
      "page": "roll_crossprod",
      "title": "Rolling Crossproducts",
      "topics": [
        "roll_crossprod"
      ]
    },
    {
      "page": "roll_idxmax",
      "title": "Rolling Index of Maximums",
      "topics": [
        "roll_idxmax"
      ]
    },
    {
      "page": "roll_idxmin",
      "title": "Rolling Index of Minimums",
      "topics": [
        "roll_idxmin"
      ]
    },
    {
      "page": "roll_lm",
      "title": "Rolling Linear Models",
      "topics": [
        "roll_lm"
      ]
    },
    {
      "page": "roll_max",
      "title": "Rolling Maximums",
      "topics": [
        "roll_max"
      ]
    },
    {
      "page": "roll_mean",
      "title": "Rolling Means",
      "topics": [
        "roll_mean"
      ]
    },
    {
      "page": "roll_median",
      "title": "Rolling Medians",
      "topics": [
        "roll_median"
      ]
    },
    {
      "page": "roll_min",
      "title": "Rolling Minimums",
      "topics": [
        "roll_min"
      ]
    },
    {
      "page": "roll_prod",
      "title": "Rolling Products",
      "topics": [
        "roll_prod"
      ]
    },
    {
      "page": "roll_quantile",
      "title": "Rolling Quantiles",
      "topics": [
        "roll_quantile"
      ]
    },
    {
      "page": "roll_scale",
      "title": "Rolling Scaling and Centering",
      "topics": [
        "roll_scale"
      ]
    },
    {
      "page": "roll_sd",
      "title": "Rolling Standard Deviations",
      "topics": [
        "roll_sd"
      ]
    },
    {
      "page": "roll_sum",
      "title": "Rolling Sums",
      "topics": [
        "roll_sum"
      ]
    },
    {
      "page": "roll_var",
      "title": "Rolling Variances",
      "topics": [
        "roll_var"
      ]
    }
  ],
  "_pkglogo": "https://github.com/jasonjfoster/roll/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/jasonjfoster/roll/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp",
    "RcppArmadillo",
    "RcppParallel"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_score": 9.296660000411462,
  "_indexed": false,
  "_nocasepkg": "roll",
  "_universes": [
    "fastverse"
  ],
  "_indexurl": "https://jasonjfoster.r-universe.dev/roll",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-13T23:47:03.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/50230ef21d3e2decb2b725390ce0912353929c1390c59978da11d99aeba8bbd7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-13T23:46:44.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/a5f0d214ea66844f0e8d8be75ab130a6108c600ab17ce61c018889dd7ecd684c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-13T23:46:44.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/2c6f73f7f615f88d6f83b8af68e3ea0bff573aea716f23e33200da8ae92e25fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-13T23:46:57.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/4225de9106b39c704b944ee52975841344039b442e7b446f9dfc52cee88b371a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-13T23:53:14.000Z",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/d6e8b747533004a044c8b8c237b75bfaf6e1bb4f42427a9cb5694d96f0d3bd02",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-13T23:51:23.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/c6dc109368e112b890f86e105305dda18462277c976a6690b9aa26fcfa8c7420",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-13T23:53:01.000Z",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/8d5db7e2f26e89f592bbe4e1ed950339aff013c71ea9fc8a7ff846ed95b57ab6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-13T23:51:49.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/98f4cbde99895077e85a2844037abe1dd6ecd2aeee97f7de9397a018e268c75a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.2",
      "date": "2026-10-13T23:46:26.000Z",
      "arch": "emscripten",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/eeb06164fbd1b43b207f870854e87c4e53547c11669cb63eea5ffe337ac9ebf4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-13T23:47:41.000Z",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/12d3606d37ae8f473a5f23e49347a1ab58d6376d5f9519191db0b9752b113982",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-13T23:45:42.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/fc7c1e1d1653576f97e6467ac04129f9398e1df9b8118497d046c1292ea0f444",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-13T23:45:45.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/985aa89e7ea1b3de10f162a4d12665c21cab73974544e89ec4b51f6fd8b82314",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-13T23:47:15.000Z",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/68fb1d5d2430e4c3bbef7260ce14a14321ed8d14293d032204b3e49e622ee816",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-13T23:45:37.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/9ce8ae8ef6f12bd4f8924e103a1463bee870e9bb3347b5401eef13761b57f3d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/38485730248"
    }
  ]
}