22
Suppose I have the following database
vendas<-c(100,140,200,300,20,1000,200,3000)
vendedor<-c("A","B","A","B","C","C","D","A")
regiao<-c("Norte","Sul","Leste","Norte","Sul","Norte","Leste","Sul")
df<-data.frame(vendedor,regiao,vendas)
And please review the total sales per seller and per seller/region.
How do I generate this new database with aggregated data for analysis?