I've multiple stations (+1000) with more than 50 years to work on it, so I configured my df with the stations on the columns and dates on rows as the example. Now I need to make summations of my parameter for each year in each column of data, but also i must know how many fields with no NA it counted to give me a specific value for each year in each station. I hope you guys can help me, and sorry about the syntax and language.
year<-c(rep(2000,12),rep(2001,12),rep(2002,12), rep(2003,12))
data <- data.frame( year, month=rep(1:12,4),est1=rnorm(12*4,2,1),est2=rnorm(12*4,2,1),est3=rnorm(12*4,2,1))
data[3,3]<-NA