I have a dataframe tas_i with 875000 rows as below:
head(tas_i) x tas year month_no 1 1 NA 1884 1 2 2 NA 1884 1 3 3 NA 1884