Hello,

   In zoo package, if I would like the time frame to be 1981M01 to 1982M12,
then I code

time_0<-as.yearmon("1981-01")+(0:23)/12


   However, if the time frame of interest becomes 1981M01 to 2011M12, it is
relatively hard to calculate the number of months. Is there any faster way
to do it? Thanks,

miao

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to