[R] ts() objects in R
Uwe Ligges
ligges at statistik.uni-dortmund.de
Tue May 4 14:26:07 CEST 2004
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)
I think you mean
ts(diff.prop, start = c(1997, 11), frequency = 12)
Uwe Ligges
> Time Series:
> Start = 2007
> 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
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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
More information about the R-help
mailing list