Questions tagged as 'plyr'

5
answers

How to consolidate (aggregate or group) the values in a database?

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,vend...
asked by 27.02.2014 / 02:36
2
answers

Apply function in data groups

I need to separate the data into groups and perform the calculations in two or three groups / dimensions. I found the tapply function, it solves the problem. With it I get what I need using the average function, sum, etc. But now, I realiz...
asked by 09.10.2015 / 18:55
1
answer

Calculate mean, standard deviation and coefficient of variation in historical series in R

Good morning, I need to generate the average, standard deviation, and coefficient of variation of the data frame below, from columns mat13 to mat16, as follows: library(plyr) co_entidade<-c(23, 40, 58, 82, 104, 171, 198, 201, 202,244)...
asked by 23.05.2017 / 16:10