[R] frequency() source code
Gabor Grothendieck
ggrothendieck at gmail.com
Tue Nov 8 17:45:55 CET 2005
This depends on how you constructed your time series in the
first place. If you do it like this:
x <- ts(1:10, freq = 4)
frequency(x)
then frequency will be 4.
Also, note that the zoo package contains a yearqtr class which
may or may not be of interest to you.
On 11/8/05, bob mccall <rcmcll at yahoo.com> wrote:
>
>
> Thanks for the replys and the link. I'll look through that file. I couldn't understand why frequency() returns 1 when quarterly seasonal data is used. Maybe I can find out looking at the code.
>
>
>
> Thanks again,
>
> Bob
>
>
>
> ---------------------------------
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list