rolling_mean.Rd 446 B

12345678910111213141516171819202122
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/diagnostics.R
  3. \name{rolling_mean}
  4. \alias{rolling_mean}
  5. \title{Compute a rolling mean of x}
  6. \usage{
  7. rolling_mean(x, w)
  8. }
  9. \arguments{
  10. \item{x}{Array.}
  11. \item{w}{Integer window size (number of elements).}
  12. }
  13. \value{
  14. Rolling mean of x with window size w.
  15. }
  16. \description{
  17. Right-aligned. Padded with NAs on the front so the output is the same
  18. size as x.
  19. }
  20. \keyword{internal}