{
  "_id": "6af47201f58eaab79920a1e5",
  "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://fastverse.r-universe.dev",
  "Date/Publication": "2026-11-11 12:55:51 UTC",
  "RemoteUrl": "https://github.com/jasonjfoster/roll",
  "RemoteRef": "HEAD",
  "RemoteSha": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-11 13:40:48 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/0deb016181a83322f29cdc6e23faee356dc1928825884a3d0a4827782ea6bcdc",
  "_filesize": 247533,
  "_sha256": "0deb016181a83322f29cdc6e23faee356dc1928825884a3d0a4827782ea6bcdc",
  "_expires": "2027-02-19T13:47:43.000Z",
  "_created": "2026-11-11T13:40:48.000Z",
  "_published": "2026-11-11T13:47:45.111Z",
  "_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": 130559071283,
      "time": 108,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13861277031"
    },
    {
      "job": 130559071374,
      "time": 138,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13860539617"
    },
    {
      "job": 130559071237,
      "time": 120,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13860344045"
    },
    {
      "job": 130559071346,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13861174132"
    },
    {
      "job": 130559071220,
      "time": 136,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13860609684"
    },
    {
      "job": 130559071409,
      "time": 311,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13861292630"
    },
    {
      "job": 130559071672,
      "time": 137,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13861705431"
    },
    {
      "job": 130559071389,
      "time": 359,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13862375886"
    },
    {
      "job": 130557052763,
      "time": 232,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13860163787"
    },
    {
      "job": 130559071244,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13859989703"
    },
    {
      "job": 130559071341,
      "time": 186,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13861008532"
    },
    {
      "job": 130559071408,
      "time": 254,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13860684275"
    },
    {
      "job": 130559071362,
      "time": 210,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13861845369"
    },
    {
      "job": 130559071238,
      "time": 210,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13861355889"
    },
    {
      "job": 130559071459,
      "time": 239,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13860609860"
    }
  ],
  "_buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569",
  "_commit": {
    "id": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
    "author": "Jason Foster <jason.j.foster@gmail.com>",
    "committer": "Jason Foster <jason.j.foster@gmail.com>",
    "message": "Version: 1.2.2\n",
    "time": 1794401751
  },
  "_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": 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
    },
    {
      "week": "2026-46",
      "n": 2
    }
  ],
  "_tags": [],
  "_topics": [
    "algorithms",
    "rcpp",
    "statistics",
    "openblas",
    "cpp",
    "openmp"
  ],
  "_stars": 118,
  "_contributors": [
    {
      "user": "jasonjfoster",
      "count": 287,
      "uuid": 7542282
    },
    {
      "user": "yutannihilation",
      "count": 1,
      "uuid": 1978793
    }
  ],
  "_userbio": {
    "uuid": 105517888,
    "type": "organization",
    "name": "fastverse",
    "followers": 37,
    "description": "An Extensible Suite of High-Performance and Low-Dependency Packages for Statistical Computing and Data Manipulation in R"
  },
  "_downloads": {
    "count": 2814,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/roll"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/jasonjfoster/roll",
  "_searchresults": 400,
  "_abi": {
    "exports": [
      {
        "key": "roll/include",
        "hash": "876f6f9f5eb51d2c"
      }
    ],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "388b1487601e3384"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "388b1487601e3384"
      },
      {
        "key": "Rcpp::char_nocheck()",
        "hash": "388b1487601e3384"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "388b1487601e3384"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "388b1487601e3384"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "388b1487601e3384"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "388b1487601e3384"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "388b1487601e3384"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "388b1487601e3384"
      }
    ]
  },
  "_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"
    }
  ],
  "_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.378538596836123,
  "_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-11-11T13:42:45.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/6d20bd9cc7fbd69be7b71b46f302162bb4218c98d4cb4c2e340763a637f41662",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-11-11T13:43:12.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/bc8a11775f8b05d4b0a12310543999f7d7d116f161c4bbb7763161c47a96aeec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-11-11T13:42:58.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/5f6d2131e6e670184b081ae1de0d98a3f3974c569b27e721eeb4d4694c83d413",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-11-11T13:43:00.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/c1708b1399fceb4a823bf8fbce71a0c8c145ac6c3a21eb165d47cbec4d780584",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-11-11T13:43:52.000Z",
      "arch": "aarch64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/4e8934ba5c64fcc76c5b88f25d8174ddc057bca048e8c605fb839e425f9a6ea0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-11-11T13:45:38.000Z",
      "arch": "x86_64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/cb2f6ba622d2cae0c97d2138b39058844c87a1051845e4ded123a3d042124fe5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-11-11T13:44:04.000Z",
      "arch": "aarch64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/cff5c836882b33faedad62bf4ce0583b4a244577684b26ec9dc742eeae6442e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-11-11T13:45:31.000Z",
      "arch": "x86_64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/3f1a2cf2364a57040ae4fc19fd1768c987476e581046d656ef1ee28ad6141893",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.2",
      "date": "2026-11-11T13:42:46.000Z",
      "arch": "emscripten",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/52e575cd55a0fb9fffe311d42da7832a61fbd7d948e321811e4c59db7a06b842",
      "status": "success",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-11T13:43:49.000Z",
      "arch": "aarch64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/84c523e5d449ef1bb8ce0b786efe4a48d67d50bfe57eb363c0f25171a3710266",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-11T13:43:17.000Z",
      "arch": "x86_64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/1bdb1f1621da1a4b7f0edcd740f3afcb00668366ec9daffb4415ea442e9e63f4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-11T13:43:29.000Z",
      "arch": "x86_64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/2b7e06e16a9f2562cb069ede039b2114693087ed9cc0f3d6fb56d9db63f9371b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-11T13:44:13.000Z",
      "arch": "aarch64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/a101fa4de84eb292a9b9f3bb3d56f74245f5ea114f7d48d85fccd06006dffbd4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-11-11T13:43:25.000Z",
      "arch": "x86_64",
      "commit": "36561a37ea840fe6dc5d7ff0a0ad25c86605094f",
      "fileid": "https://r2.ropensci.org/c73b76a57da26aa55ec6c5d7355eb4447cf524f6badf6e1cde2325277908b5e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fastverse/actions/runs/43030775569"
    }
  ]
}