{
  "_id": "6a495d2b77d6db3f2f964cec",
  "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 as the\ncomputation is independent of the window. 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": "make",
  "Repository": "https://jasonjfoster.r-universe.dev",
  "Date/Publication": "2026-06-17 22:37:21 UTC",
  "RemoteUrl": "https://github.com/jasonjfoster/roll",
  "RemoteRef": "HEAD",
  "RemoteSha": "84890c8278f12e0723c69532f021d8db5ea74013",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-24 05:26:30 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/5afc7aa38cce83e8cae406e94a5292fd47f98b9184d355b44ec9881a0543cee7",
  "_filesize": 249061,
  "_sha256": "5afc7aa38cce83e8cae406e94a5292fd47f98b9184d355b44ec9881a0543cee7",
  "_expires": "2026-10-12T19:21:14.000Z",
  "_created": "2026-06-24T05:26:30.000Z",
  "_published": "2026-07-04T19:21:15.825Z",
  "_jobs": [
    {
      "job": 85160045103,
      "time": 215,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7840920196"
    },
    {
      "job": 85160044838,
      "time": 213,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7840919038"
    },
    {
      "job": 85160045046,
      "time": 223,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7840922045"
    },
    {
      "job": 85160044962,
      "time": 192,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7840913796"
    },
    {
      "job": 85160045020,
      "time": 147,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7840903205"
    },
    {
      "job": 85160045095,
      "time": 343,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7840948575"
    },
    {
      "job": 85160044963,
      "time": 132,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7840899324"
    },
    {
      "job": 85160044968,
      "time": 256,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7840929135"
    },
    {
      "job": 85160044828,
      "time": 213,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7840867146"
    },
    {
      "job": 85160044840,
      "time": 145,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7840902589"
    },
    {
      "job": 85160044946,
      "time": 192,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7840913896"
    },
    {
      "job": 85160044947,
      "time": 176,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7840910342"
    },
    {
      "job": 85160044845,
      "time": 200,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7840915588"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860",
  "_status": "success",
  "_upstream": "https://github.com/jasonjfoster/roll",
  "_commit": {
    "id": "84890c8278f12e0723c69532f021d8db5ea74013",
    "author": "Jason Foster <jason.j.foster@gmail.com>",
    "committer": "Jason Foster <jason.j.foster@gmail.com>",
    "message": "Version: 1.2.2\n",
    "time": 1781735841
  },
  "_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": true,
  "_usedby": 12,
  "_updates": [
    {
      "week": "2025-27",
      "n": 1
    },
    {
      "week": "2025-28",
      "n": 2
    },
    {
      "week": "2025-30",
      "n": 1
    },
    {
      "week": "2025-31",
      "n": 1
    },
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2025-33",
      "n": 1
    },
    {
      "week": "2025-40",
      "n": 3
    },
    {
      "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
    }
  ],
  "_tags": [],
  "_topics": [
    "algorithms",
    "rcpp",
    "statistics",
    "openblas",
    "cpp",
    "openmp"
  ],
  "_stars": 118,
  "_contributors": [
    {
      "user": "jasonjfoster",
      "count": 284,
      "uuid": 7542282
    },
    {
      "user": "yutannihilation",
      "count": 1,
      "uuid": 1978793
    }
  ],
  "_userbio": {
    "uuid": 7542282,
    "type": "user",
    "name": "Jason Foster",
    "followers": 29
  },
  "_downloads": {
    "count": 3968,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/roll"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/jasonjfoster/roll",
  "_searchresults": 372,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/roll.html",
    "manual.pdf"
  ],
  "_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.726718037151745,
  "_indexed": true,
  "_nocasepkg": "roll",
  "_universes": [
    "jasonjfoster"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-06-24T05:29:10.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/a722713d30e74325d221db15d81656749ae500741a346b68fac5bdca08c6edcb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-06-24T05:28:52.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/3416e1fed3ecae2cc5aabc05f9f2e9e1aa16da21b05b05f9916fd1d0dc175d26",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-06-24T05:29:15.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/3beff5f9efd3bfe111b03e5b5cc5f38e7806925f5bccdb084e2c92101f9a0e03",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-06-24T05:28:36.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/ee45ce86864f85215c85d4ff975fd50a2304bc99473eecbd3056ed0ff7b4d2ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-06-24T05:28:14.000Z",
      "arch": "aarch64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/6021644d6ea5a99e4dc09c48c38c4c0d7d4678967e24991b3fc331fdfeb4e7c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-06-24T05:29:41.000Z",
      "arch": "x86_64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/9b450662645874b36b4eab9ed3b14b26ba10b02e9e01e18e3a74c4475ab7c537",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-06-24T05:28:12.000Z",
      "arch": "aarch64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/a531632cf0c729db13e6a0f621a4e74570435cad331d33fe89ad8b2283fd5e76",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-06-24T05:29:01.000Z",
      "arch": "x86_64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/a173d7a6692498e7638d2d3a92c296bcaf930bfdc526356b351acb473cc8ce8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.2",
      "date": "2026-06-24T05:29:08.000Z",
      "arch": "emscripten",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/39cd9119a0b58bea1eb9ce4df163426214f16acf14868607d24c5ca9316372a7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-06-24T05:27:48.000Z",
      "arch": "x86_64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/9c49538cd1c432038d521a55db6cc817ac76d6ba367240d01860e996da7a5a32",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-06-24T05:27:44.000Z",
      "arch": "x86_64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/69daff9ef89af68ed69fe094d24e931e8e12846217e9fee659be1c61fa4be67a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-06-24T05:27:51.000Z",
      "arch": "x86_64",
      "commit": "84890c8278f12e0723c69532f021d8db5ea74013",
      "fileid": "https://r2.ropensci.org/605d2ef415d74afee8f9a196f78dbe42904a58b2da6741e007b1bf56f1387e3c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/28077137860"
    }
  ]
}