Re: [R] Representing 'Date' as 'Year - Quarter'

2008-05-31 Thread Gabor Grothendieck
The zoo package has a yearqtr class that can represent quarterly data. It is also possible to create zoo series of quarterly data. Such series can be converted to ts class and that class can some builtin support for quarterly data as well. > library(zoo) > as.yearqtr("200706", "%Y%m") [1] "2007 Q

[R] Representing 'Date' as 'Year - Quarter'

2008-05-31 Thread Vishal Belsare
I have financial data on a a set of firms, with a quarterly period (fundamental data). The data spans 10 years, and four quarters per year. The present file (.csv) reads the Date columns as "200706" for the second quarter of 2007; "199809" for the third quarter of 1997. Is there a way I can conver