Re: [R] Dimension of quantile function output

2016-01-22 Thread ruipbarradas
Hello, Maybe something like the following. temp2 <- cbind(temp[[3]][, 1], temp[[3]][, 2]) str(temp2) Hope this helps, Rui Barradas   Citando Jun Shen : > Dear list, > > Say I have some quantile operation like this > > data.frame(ID=rep(1:10,each=10),CONC=runif(100)) -> test > > lapply(c('mean

[R] Dimension of quantile function output

2016-01-22 Thread Jun Shen
Dear list, Say I have some quantile operation like this data.frame(ID=rep(1:10,each=10),CONC=runif(100)) -> test lapply(c('mean','sd','quantile'), function(x) aggregate(test['CONC'],by=test['ID'],FUN=x)) -> temp The output temp is a list of three elements. I would like to merge the three elemen