Skip to content
Prev 361212 / 398503 Next

Getting Rid of NaN in ts Object

On Fri, May 27, 2016 at 08:46:20PM +1000, Jim Lemon wrote:
Not really.
+ NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, 1133.09, 1155.77, 1179.12,
+ 1182.85, 1133.43, 1103.36, 1081.19, 1058.55, 1056.95, 1059.13,
+ 1018.18, 920.62, 865.99, 856.29, 841.58, 857.7, 852.71, 890.76
+ ), .Tsp = c(1980, 2015, 1), class = "ts")
[1] "ts"
[1] "numeric"


and I lose all the info about the years.

Lorenzo