I am amazed at the number of rather obtuse misunderstandings of the actual nature of Erin's question.
The suggestion that Erin should read the intro to R made me smile. Erin is a long time and highly sophisticated user of R; she has no need to read the intro. The person who made that suggestion should have read her question more thoughtfully.
Also I liked Steve Taylor's and Marc Swartz's nifty solutions that use sapply(); much sexier than my rather kludgy effort using do.call(). Berwin Turlach's combination of do.call() and sapply() is pretty sexy too.
cheers, Rolf Turner -- Rolf Turner Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 Home phone: +64-9-480-4619 ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.