assume, that I've an xts Format like this:
foo 
2000-01-01   2.6
2000-02-01   4.0
2000-03-01   2.6
2000-04-01   1.0
2000-05-01   2.4
...
...
2012-12-01   3.2
Now, I want transform my xts format to an ts series.
With the use of
foo_ts<-ts(foo, freq=12, start=index(foo)[1])
I'm loosing the date Format and get just numerical values instead of the years.
The results should look like this:
      Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2000  2.6  4.0  2.6  1.0  2.4
2001 
2002 
2003 
2004
I dont want to set it manually wit c(2000,1). Im searching for a automatically way to deal with the problem.
 
     
    