search for: agg_dt1

Displaying 1 result from an estimated 1 matches for "agg_dt1".

2012 Oct 06
1
arrange data
Dear r-users, I have dailly rainfall data from year 1971 to 2000. I use aggregate to form monthly rainfall data.  What I don't understand is that the data for the year 2000 become on the top, instead of year 1971.  Here are some codes and output: agg_dt1     <- aggregate(x=dt1[,4],by=dt1[,c(1,2)],FUN=sum) > head(agg_dt1,20); tail(agg_dt1,20)    Tahun Bulan     x 1      0     1 398.6 2     71     1 934.9 3     72     1 107.2 4     73     1 236.4 5     74     1  10.5 6     75     1 744.6 7     76     1   9.2 8     77     1 108.7 9     78     1...