I have a vector of length 7000. I want to compute the mean of first 7 elements, and then do the samething for the next 7 elements that follows, and so on. This would require grouping my vector by the length 7. Is there anyway I can do this?

Thank you,