Fair enough, my mistake. However, I am quite fascinated how that focuses everybody else on picking on the intitial answer and diverts everybody away from anwering the actual question. All the more it points to the second paragraph of my reply, namely that all modular components of the function should be checked.
For example: lapply(data,function(){quantile(x,probs=0.25)}) #does not work, but lapply(data,function(x){quantile(x,probs=0.25)}) #works So perhaps missing out on the x in the definition of the function is the only problem. But for that, we would need the error message. Daniel -- View this message in context: http://r.789695.n4.nabble.com/function-tp2196408p2196576.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.