title: R: Take the names of the months in a TS Object
body: <p>Imagine that you have the following time series. A monthly one</p>
  
  <pre><code>require(forecast)
  
  a&lt;-ts(seq(1:50),frequency = 12)
  
  Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
  1   1   2   3   4   5   6   7   8   9  10  11  12
  2  13  14  15  16  17  18  19  20  21  22  23  24
  3  25  26  27  28  29  30  31  32  33  34  35  36
  4  37  38  39  40  41  42  43  44  45  46  47  48
  5  49  50 
  </code></pre>
  
  <p>I want to obtain the month for each of the data points. That would be a vector of length 50, that would have (Jan, Feb, ..., Mar)</p>
  
  <pre><code>&gt; names(a)
   NULL
  </code></pre>
  
  <p>I tried also colnames. But no luck. Any suggestion?</p>
  
  <p>Best!</p>