title: Decomposing Time-Series Data: "no or less than 2 periods"
body: <p>I have a string a time-series data which I am trying to decompose. Each data-point corresponds to the start date of a given month and looks something like:</p>
  <pre><code>A &lt;- c(5,6,7,8,9,8,5,6,10,11)
  </code></pre>
  <p>I convert the data to a time-series using the following:</p>
  <pre><code>A1 &lt;- as.ts(A, frequency=12)
  </code></pre>
  <p>Then I try to decompose using:</p>
  <pre><code>decompose(A1)
  </code></pre>
  <p>I get the following error:</p>
  <blockquote>
  <p>time series has no or less than 2 periods`</p>
  </blockquote>
  <p>I have also used the <code>zoo</code> package to create a similar time-series, but get the same result.</p>
  <p>Any thoughts?</p>