Hi,
I have time series data stored in csv files (see below for an example of the
data). I understand that in order to analyze my data in R, I need to first
transform it into a ts object. Howeve, I could not find an example on how
exactly to do that. Is ts the only function I need? What are the ste
On Thu, 12 Apr 2007, tom soyer wrote:
> Hi,
>
> I have time series data stored in csv files (see below for an example of the
> data). I understand that in order to analyze my data in R, I need to first
> transform it into a ts object. Howeve, I could not find an example on how
> exactly to do that
On 4/12/07, tom soyer <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have time series data stored in csv files (see below for an example of the
> data). I understand that in order to analyze my data in R, I need to first
> transform it into a ts object. Howeve, I could not find an example on how
> exactly
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
>
How c
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 1
Oh yes, I forgot. 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 De
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
On 4/12/07, tom soyer <[EMAIL PROTECTED]> wrote:
> 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.
ts series cannot directly represent dail
Thanks Gabor!!
On 4/12/07, Gabor Grothendieck <[EMAIL PROTECTED]> wrote:
>
> On 4/12/07, tom soyer <[EMAIL PROTECTED]> wrote:
> > 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() f
As Gabor said, ts series are not good for weekly data. That's why I created the
tis (Time Indexed Series) class, in the 'fame' package. You don't need the
Fame database to use them.
--
Jeff
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.
10 matches
Mail list logo