> Many people seem to be reluctant to define functions, > even thought I think it is a pretty small step from > writing scripts to writing functions.
I'm not so sure - I find most students struggle to grasp that next level of abstraction. Generalising from a specific task to a general function is a big step. Most R users aren't programmers and many have never had any formal training - I think writing functions well is hard to pick up on your own. Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University 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.