x=matrix(c(2011,31.66,33.23,32.94,32.91,33.37,30.59,25.51,26.30,26.44,
26.19,28.10,26.34,21.64,22.14,23.23,1978,32.83,32.69,30.10,30.71,29.79,28.87,
28.81,27.69,25.01,26.34,26.31,25.31,26.53,27.59,22.31)
,nrow=2,ncol=16,byrow=TRUE)
AutoWeatherIndices(x,5)
Run the code above in your browser using DataLab