<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Devia ter buscando no google antes de sair escrevendo código. Procurei com "moving average in a matrix with R". Esses links mostram implementações.<br>
<br><a href="http://ugrad.stat.ubc.ca/R/library/OLIN/html/ma.matrix.html">http://ugrad.stat.ubc.ca/R/library/OLIN/html/ma.matrix.html</a><br><a href="http://stackoverflow.com/questions/743812/calculating-moving-average-in-r">http://stackoverflow.com/questions/743812/calculating-moving-average-in-r</a><br>
<a href="https://stat.ethz.ch/pipermail/r-sig-geo/2008-June/003784.html">https://stat.ethz.ch/pipermail/r-sig-geo/2008-June/003784.html</a><br><br></div>À<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;display:inline">
disposição.<br>Walmes.</div></div>