Thanks for the replies. I finally figured it out after looking at ts.R and the
docs for ts(). I should have looked into ts() first, instead of frequency().
Didn't realize exactly what I was doing in declaring a data set as ts().
Thanks again,
Bob
Prof Brian Ripley [EMAIL PROTECTED]
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
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 [EMAIL
On Tue, 8 Nov 2005, bob mccall 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.
Note that frequency only reads off the information in an
Greetings:
I am looking for the source code for the frequency function. I
grepped the following dirs but no luck.
R-2.2.0/src/appl/*
R-2.2.0/src/main/*
R-2.2.0/src/nmath/*
R-2.2.0/src/library/stats/*
Does anybody know the file name??
Thanks,
Bob
On 11/7/2005 6:11 PM, bob mccall wrote:
Greetings:
I am looking for the source code for the frequency function. I
grepped the following dirs but no luck.
R-2.2.0/src/appl/*
R-2.2.0/src/main/*
R-2.2.0/src/nmath/*
R-2.2.0/src/library/stats/*
Does
From: Duncan Murdoch [EMAIL PROTECTED]
To: bob mccall [EMAIL PROTECTED]
CC: r-help@stat.math.ethz.ch r-help@stat.math.ethz.ch
Subject: Re: [R] frequency() source code
Date: Mon, 07 Nov 2005 18:30:25 -0500
On 11/7/2005 6:11 PM, bob mccall wrote:
Greetings:
I am looking