> PS: Any speed suggestions are appreciated. This is "experimenting time" for > me. You might want to check out the plyr package - it incorporates everything I know about making these sorts of operations fast. The next version will do even better. Hadley -- http://had.co.nz/