{
  "_id": "6b01020505a44bc90124937d",
  "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.1.1",
  "Encoding": "UTF-8",
  "SystemRequirements": "GNU make",
  "Config/pak/sysreqs": "cmake make",
  "Repository": "https://jasonjfoster.r-universe.dev",
  "Date/Publication": "2026-11-21 01:12:33 UTC",
  "RemoteUrl": "https://github.com/jasonjfoster/roll",
  "RemoteRef": "HEAD",
  "RemoteSha": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-21 02:22:41 UTC",
    "User": "root"
  },
  "Author": "Jason Foster [aut, cre]",
  "Maintainer": "Jason Foster <jason.j.foster@gmail.com>",
  "_user": "jasonjfoster",
  "_type": "src",
  "_file": "roll_1.2.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/dfc46f26c23e6f9edebbba8f228bba4a47927bea81b06bb625d180b922d2f269",
  "_filesize": 247989,
  "_sha256": "dfc46f26c23e6f9edebbba8f228bba4a47927bea81b06bb625d180b922d2f269",
  "_expires": "2027-03-01T02:29:23.000Z",
  "_created": "2026-11-21T02:22:41.000Z",
  "_published": "2026-11-21T02:29:25.302Z",
  "_upstream": "https://github.com/jasonjfoster/roll",
  "_status": "success",
  "_maintainer": {
    "name": "Jason Foster",
    "email": "jason.j.foster@gmail.com",
    "login": "jasonjfoster",
    "description": "",
    "uuid": 7542282
  },
  "_jobs": [
    {
      "job": 136697018074,
      "time": 116,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14687044450"
    },
    {
      "job": 136697018109,
      "time": 187,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14687876052"
    },
    {
      "job": 136697018103,
      "time": 112,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14687846039"
    },
    {
      "job": 136697018073,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14687391957"
    },
    {
      "job": 136697018078,
      "time": 106,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14686829563"
    },
    {
      "job": 136697018133,
      "time": 173,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14686914881"
    },
    {
      "job": 136697018169,
      "time": 92,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14687965090"
    },
    {
      "job": 136697018033,
      "time": 341,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14687776800"
    },
    {
      "job": 136695876427,
      "time": 223,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14687635611"
    },
    {
      "job": 136697018084,
      "time": 95,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14687751082"
    },
    {
      "job": 136697018216,
      "time": 185,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14687861229"
    },
    {
      "job": 136697018218,
      "time": 131,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14688000142"
    },
    {
      "job": 136697018200,
      "time": 119,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14687626430"
    },
    {
      "job": 136697018128,
      "time": 222,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14686994901"
    },
    {
      "job": 136697018174,
      "time": 118,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14687611453"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847",
  "_commit": {
    "id": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
    "author": "Jason Foster <jason.j.foster@gmail.com>",
    "committer": "Jason Foster <jason.j.foster@gmail.com>",
    "message": "Version: 1.2.2\n",
    "time": 1795223553
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": true,
  "_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
    },
    {
      "week": "2026-46",
      "n": 3
    },
    {
      "week": "2026-47",
      "n": 4
    }
  ],
  "_tags": [],
  "_topics": [
    "algorithms",
    "rcpp",
    "statistics",
    "openblas",
    "cpp",
    "openmp"
  ],
  "_stars": 118,
  "_contributors": [
    {
      "user": "jasonjfoster",
      "count": 292,
      "uuid": 7542282
    },
    {
      "user": "yutannihilation",
      "count": 1,
      "uuid": 1978793
    }
  ],
  "_userbio": {
    "uuid": 7542282,
    "type": "user",
    "name": "Jason Foster",
    "followers": 29
  },
  "_downloads": {
    "count": 2797,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/roll"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/jasonjfoster/roll",
  "_abi": {
    "exports": [
      {
        "key": "roll/include",
        "hash": "48272240b582d0ef"
      }
    ],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::char_nocheck()",
        "hash": "b9506dcc532aefab"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "33a97ea62b293da6"
      }
    ]
  },
  "_rbuild": "4.6.2",
  "_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"
    }
  ],
  "_authors": [
    {
      "name": "Jason Foster",
      "email": "jason.j.foster@gmail.com",
      "role": [
        "aut",
        "cre"
      ]
    }
  ],
  "_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": 7.808609085040171,
  "_indexed": true,
  "_nocasepkg": "roll",
  "_universes": [
    "jasonjfoster"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-11-21T02:24:54.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/795d78dc7a549b08768a592de23db14c940efdb2b570a1559ae4a0509b2ea8d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-11-21T02:26:01.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/cb60a1d2cba227708774d23b9f82d5da4c1398612a7e567b22e051bd7f12597b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-11-21T02:24:53.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/3924e6ba4500f9b4e6a08267d6667bfae747ae6f6498698cdab8dba70180fd17",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-11-21T02:25:05.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/72eee17e9a5e9ffb8fc8bdcc4eaaa47864e67a674090b5f73e18a42a25692744",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-11-21T02:24:42.000Z",
      "arch": "aarch64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/c49c0d595619da631fa1c98f7a9fe788528a1955edc248701b66f6b3fb986772",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-11-21T02:25:33.000Z",
      "arch": "x86_64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/b56ba96e0ddfaaa83be7331c765e9fa6c70ea1568b1ebadf9c97c1d71c71e340",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-11-21T02:24:34.000Z",
      "arch": "aarch64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/fbcfae5004133315d03115dae209af18c194a7bf747970c59c708a1680843582",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-11-21T02:26:45.000Z",
      "arch": "x86_64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/df45a9b563887363d0ada727843115dd6d2628e3449f3d28d171820175e46ded",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.2",
      "date": "2026-11-21T02:24:52.000Z",
      "arch": "emscripten",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/ad04c768edcfaebe51f183066fbb2a3b7140361851a336ca6c681240aa4d18f7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-21T02:25:49.000Z",
      "arch": "aarch64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/93c931400d56b6869a91e2015b6a48121c8b3d596e2480cb8e3903f1c1ff10ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-21T02:24:07.000Z",
      "arch": "x86_64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/f8d912f1d33465a4aad5e0e59e2c0ea900060fcf288800925eb639e1b4c89ad3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-21T02:24:18.000Z",
      "arch": "x86_64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/2702229ade4bbdb19aff4630106ca0b3db0eb9bfe705e9488baaeb15cd563874",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-21T02:26:25.000Z",
      "arch": "aarch64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/818971178787bad9776a864ff7c7cb4ecc8175de7587c6a8c166dc088d79babb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-21T02:24:11.000Z",
      "arch": "x86_64",
      "commit": "f63eb6aeff60644d2b1a482f0d127c3706d14b94",
      "fileid": "https://r2.ropensci.org/bacf4cf347c191b6bbe61594375bba01ab93489e8ee72aeea9480c47c91fb8e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/44855240847"
    }
  ]
}