Mark Leeds <[EMAIL PROTECTED]> wrote: > could someone explain the difference between > do.call("cbind",list(a,b,c,d)) and cbind(a,b,c,d).
do.call("cbind", list(a=a, b=b, c=c, d=d)) is indeed the same as cbind(a, b, c, d). But suppose you wanted a function to cbind any number of vectors in reverse order: myfun <- function(...) do.call("cbind", rev(list(...))) -- David Brahm ([EMAIL PROTECTED]) ______________________________________________ R-help@stat.math.ethz.ch 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.