>> If you can point me towards a doc that explains this in simple terms I >> would be obliged. Don't expect you to have to provide the answer. > > Any of the introductory texts should explain the various forms of indexing > and the use of the apply family of functions. They are both central to > effective R programming.
See also the plyr package, http://had.co.nz/plyr, which tries to provide a more uniform interface to the apply family of functions. I've also tried to document everything in one place, so hopefully it's a bit easier to learn and to see how all the different functions fit together. Hadley -- http://had.co.nz/ ______________________________________________ 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.