Re: [R] Finding the Summation of Monthly Amount

2014-10-13 Thread peter dalgaard
Looks like a job for aggregate() -pd On 13 Oct 2014, at 04:25 , dila radi wrote: > Hi all, > > Could someone help me on this? I have this kind of data set > > structure(list(Year = c(1971L, 1971L, 1971L, 1971L, 1971L, 1971L, > 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, > 1

[R] Finding the Summation of Monthly Amount

2014-10-12 Thread dila radi
Hi all, Could someone help me on this? I have this kind of data set structure(list(Year = c(1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 19