{
  "_id": "6ad88f050d12c08e591ba343",
  "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://jasonjfoster.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-21 09:59:35 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/9c0b5e672cdea08929775f279568746aa22e9214c7500590f27bba08db3f23e8",
  "_filesize": 246651,
  "_sha256": "9c0b5e672cdea08929775f279568746aa22e9214c7500590f27bba08db3f23e8",
  "_expires": "2027-01-29T10:08:00.000Z",
  "_created": "2026-10-21T09:59:35.000Z",
  "_published": "2026-10-21T10:08:05.703Z",
  "_buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 119159336776,
      "time": 203,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12336312685"
    },
    {
      "job": 119159336696,
      "time": 201,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12336482272"
    },
    {
      "job": 119159336786,
      "time": 209,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12335909177"
    },
    {
      "job": 119159336647,
      "time": 202,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12337215828"
    },
    {
      "job": 119159336719,
      "time": 172,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12336209554"
    },
    {
      "job": 119159336938,
      "time": 441,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12336438051"
    },
    {
      "job": 119159336822,
      "time": 157,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12337175831"
    },
    {
      "job": 119159336853,
      "time": 431,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12338230515"
    },
    {
      "job": 119157743608,
      "time": 223,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12336711006"
    },
    {
      "job": 119159336851,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12337310466"
    },
    {
      "job": 119159336890,
      "time": 306,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12337136361"
    },
    {
      "job": 119159336749,
      "time": 214,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12337960059"
    },
    {
      "job": 119159336907,
      "time": 202,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12336367811"
    },
    {
      "job": 119159336941,
      "time": 304,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12337216111"
    },
    {
      "job": 119159336782,
      "time": 162,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12337480122"
    }
  ],
  "_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": 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
    }
  ],
  "_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": 7542282,
    "type": "user",
    "name": "Jason Foster",
    "followers": 28
  },
  "_downloads": {
    "count": 2816,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/roll"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/jasonjfoster/roll",
  "_searchresults": 366,
  "_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.302479687384517,
  "_indexed": true,
  "_nocasepkg": "roll",
  "_universes": [
    "jasonjfoster"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-21T10:02:10.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/2f579555d0971d97c58a65fa3c860e2f6d808f103da2b0b9f8cc533ae281823b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-21T10:01:52.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/ca8dab27d0278358041a3f471e7d0732d5f752a11cf8e0a01408c60fbf32b8b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-21T10:02:16.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/2edbdc727f830eaa0b47eb1dddfa74332e6788a24671f92501b1f781ba57c27b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-21T10:02:14.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/12593938b0ee99666227ee6770e26cc8ef9bb44f97d35f60781865890a1ecb31",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-21T10:01:39.000Z",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/386b75bc7af9cb431c53feec01fc7dca272a051a9a72766de41986fb16d56bf3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-21T10:03:27.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/56578d137cc07f0d586b83dc2d6bb280e3c3ceb6ce889e1f161cc6088a23a45f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-21T10:01:24.000Z",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/86ad4240f1aac637bc986a479fc9aa1ab9215982e62e86d0b26e89cfe0450895",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-21T10:03:27.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/cca220c9220fa1a3ae8f03d4e3286b834d6b2388571a4225e1f677e7ee16cc30",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.2",
      "date": "2026-10-21T10:01:52.000Z",
      "arch": "emscripten",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/90b109e1e920212adb1117305db1312aa2002c766be8e2ce7d9c420d72b0906e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-21T10:03:20.000Z",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/87eb3c4d281f5551f177325ec4650357765c25f883073cd5f34db4c88826b246",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-21T10:01:03.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/6344e5d32f4c85919c8e9eaa64d6f5c647271f781617d8f3389c406d07f4f52e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-21T10:00:57.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/6bf65c7703226c81386dfcc88ce170407fa1beb0f4d9f74fc475d6460e8dd067",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-21T10:03:21.000Z",
      "arch": "aarch64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/5339e7cfc0f5c3c6ddcf92b425e058628ba2b519630b587cc0bcc81f90ef6e65",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-21T10:00:58.000Z",
      "arch": "x86_64",
      "commit": "c8197fece6ccefbefabb71102d216046cac47ca4",
      "fileid": "https://r2.ropensci.org/0cee8564624b9fe0d1a84cd2b656423bbf96ae8078c78baf569da0114551f09a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jasonjfoster/actions/runs/39580765158"
    }
  ]
}