Wednesday, 15 September 2010

r - frequency() and cycle() of a monthly xts object returns value "1" -


I have a monthly commodity object, and returns the function frequency () 1, Although I hope that the function cycle () does not return the number of months, rather the value of 1 for every observation.

  Library ('quantmod') received ("GS 10", src = "FRED") frequency (GS10) cycle (GS10)  

Try it out:

  Time (GS10) & lt; - as.yearmon (time (GS10))  

No comments:

Post a Comment