Note that the preferred way of doing this with ts series is to use the
frequency() function rather than using tsp. That function also works
for zoo objects.
On Mon, Apr 12, 2010 at 11:20 PM, Erin Hodgess <erinm.hodgess at
gmail.com> wrote:> Dear R People:
>
> When I have a time series, I can get the frequency of the series via
tsp(x)[3].
>
> Is there a similar function for xts and zoo objects, please?
>
> Thanks,
> Erin
>
>
> --
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: erinm.hodgess at gmail.com
>
> ______________________________________________
> R-help at 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.
>