[R] ts() objects in R
Unung Istopo Hartanto
unung at enciety.com
Tue May 4 14:35:45 CEST 2004
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
More information about the R-help
mailing list