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)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]]
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
Hi, ----- Original Message ----- From: "Uwe Ligges" <ligges at statistik.uni-dortmund.de>> > I think you mean > > ts(diff.prop, start = c(1997, 11), frequency = 12)Whoops, indeed......thanks! That was a stupid question *_* kevin Wang
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