Re: [R] ts() objects in R

About this list Date view Thread view Subject view Author view Attachment view

From: Unung Istopo Hartanto (unung@enciety.com)
Date: Tue 04 May 2004 - 22:35:45 EST


Message-id: <1083674144.4696.3.camel@IT05>

hello Kevin,

On Tue, 2004-05-04 at 19:01, Ko-Kang Kevin Wang wrote:
> Does anyone know why this is happening?
> > diff.prop[1:5]
> 1 2 3 4 5
> -0.6323988 -0.5226586 -0.5605096 -0.6656347 -0.6011561
> > ts(diff.prop, start = c(1997, 11), frequency = 1)

Please try :

ts(diff.prop,start=c(1997,11), frequency=12)

thanks,

Unung

> Time Series:
> Start = 2007 # is 1997 + 11 - 1
> End = 2125
> Frequency = 1
> [snip]
>
> diff.prop is a vector, I want to convert it to a time series starting from Nov 1997 on a monthly basis. However when it's created it starts from 2007. It's happening on both R 1.8.1 and R 1.9.0 on Windows XP Pro
>
> Cheers,
>
> Kevin

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:07 EST