I have monthly data frame(stn) which I want convert into a single column (date vs rain) time series zoo object as it is with missing years. I would like to do few analysis with zoo package. Any help?
> head(stn)
Year Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
1 1990 79.6 168.6 122.6 161.9 0.0 0 0 0 0 0.0 11.2 45.4
2 1991 155.6 173.9 163.2 37.4 0.0 0 0 0 0 0.0 0.0 47.2
3 1995 97.7 84.9 117.1 0.0 3.6 0 0 0 0 0.4 0.0 99.8
4 1996 188.8 155.9 214.3 25.3 0.0 0 0 0 0 0.0 0.0 134.3
5 1997 37.3 202.1 24.4 21.4 39.0 0 0 0 0 0.0 120.2 372.1
6 1998 209.4 175.1 117.4 135.4 5.2 0 0 0 0 0.0 0.0 0.0