title: Moving windows down through a vector in R
body: <p>I'd like to take a vector of numerics, then using a specified window width &amp; stride I want to run down through the vector capturing the means of each window by their stride. I can code this but I'm wondering if there's a neater way with a package etc..?</p>
  
  <p><a href="https://i.stack.imgur.com/s0rDn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s0rDn.jpg" alt="enter image description here"></a></p>