I have a data-frame like this
no        date          charges
050034    2011-07-14    3312.00
000859    2012-07-13    10913.54
05266     2013-07-16    159.00
000859    2012-07-13    370.00 
000859    2014-07-16    21881.36
38027     2012-07-13    164.00
I want to find average total charges group by each no and date in unique date. I used
summary<-df %>% group_by(no) %>% summarize_each(funs(total_charges=sum(charges)))
to get result like this:
no        date          charges
050034    2011-07-14    3312.00
000859    2012-07-13    11283.54
05266     2013-07-16    159.00
000859    2014-07-16    21881.36
38027     2012-07-13    164.00
(we only have one no=000859 at 2012-07-13) but my code does not work correctly!
EDIT:::::: How could I find average of total charges per month for each no?
 
     
    