Posts by dudu • 111 points
1 post
-
1
votes2
answers64
viewsA: SUMMATION IN A COLUMN IN A LINE INTERVAL
You can also use the package dplyr library(dplyr) summary <- dados %>% mutate (Date = as.Date(Date, "%m/%d/%Y"), Mes = as.Date(Date, "%Y%m")) %>% group_by (Mes) %>% summarise (Soma = sum…