On 07 May 2014, at 17:55 , Marc Schwartz <marc_schwa...@me.com> wrote:
>> as.data.frame(sapply(mtcars[, c("mpg", "disp")], summary)) I'd use lapply() rather than sapply() here. That goes directly from a list to a data frame, avoiding the detour via a matrix. -- Peter Dalgaard, Professor Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd....@cbs.dk Priv: pda...@gmail.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.