Gabor,

What should I do for weekly and daily data series? Are there functions
similar to yearmon() for other time intervals? I see that there is a
built-in yearqtr() function for quarterly data, but that's it.

Thanks!

On 4/12/07, Gabor Grothendieck <[EMAIL PROTECTED]> wrote:
>
> On 4/12/07, tom soyer <[EMAIL PROTECTED]> wrote:
> > Thanks Gabor!
> >
> > I think your example works, but check this out:
> >
> > > as.ts(z)
> >       Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
> > 1921 19.0 18.4 18.3 18.1 17.7 17.6 17.7 17.7 17.5 17.5 17.4 17.3
> > 1922 16.9 16.9 16.7 16.7 16.7 16.7 16.8 16.6 16.6 16.7 16.8 16.9
> > > is.ts(z)
> > [1] FALSE
>
> The above outputs as.ts(z) on the console.  If you want to
> assign it to a variable you need to do so:
>
> tz <- as.ts(z)
> is.ts(tz) # TRUE
>



-- 
Tom

        [[alternative HTML version deleted]]

______________________________________________
[EMAIL PROTECTED] 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