apply(avgs,2,mean, na.rm=TRUE) # column means
1990 1991 1992 1993 1994 1995 1996 1997
105.5797 107.6715 108.3140 110.3188 111.9662 114.1981 115.3527 118.8792
1998 1999
121.5169 125.0435
head(apply(avgs,1,mean, na.rm=TRUE)) # row means
[1] 168.0 26.3 41.8 8.5 28.8 224.6
apply(avgs,2,sd, na.rm=TRUE) # columns sds
1990 1991 1992 1993 1994 1995 1996 1997
110.6440 112.7687 114.4853 116.6744 120.0931 122.7119 126.1800 131.0858
1998 1999
137.3754 146.0755
apply(avgs,2,max, na.rm=TRUE) # column maxs
1990 1991 1992 1993 1994 1995 1996 1997 1998 1999
585 594 606 618 630 642 655 668 681 695