<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
     xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:wfw="http://wellformedweb.org/CommentAPI/"
     >
  <channel>
    <title>brain of mat kelcey</title>
    <link>http://matpalm.com/blog</link>
    <description>thoughts from a data scientist wannabe</description>
    <generator>Blogofile</generator>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>moving average of a time series in R</title>
      <link>http://matpalm.com/blog/2010/06/15/moving-average-of-a-time-series-in-r/</link>
      <category><![CDATA[simple stuff i keep forgetting]]></category>
      <category><![CDATA[r]]></category>
      <guid>http://matpalm.com/blog/?p=649</guid>
      <description>moving average of a time series in R</description>
      <content:encoded><![CDATA[<p>in this a sliding window of 3 elements</p>
<table class="pygments_murphytable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5
6
7
8
9</pre></div></td><td class="code"><div class="pygments_murphy"><pre>&gt; x = c(3,1,4,1,5,9,2,6,5,3,5,8)
&gt; ra_x = filter(x, rep(1,3)/3)
&gt; ra_x
Time Series:
Start = 1 
End = 12 
Frequency = 1 
 [1]       NA 2.666667 2.000000 3.333333 5.000000 5.333333 5.666667 4.333333
 [9] 4.666667 4.333333 5.333333       NA
</pre></div>
</td></tr></table>]]></content:encoded>
    </item>
  </channel>
</rss>

