Chris Wallace <[EMAIL PROTECTED]> writes: > I am struggling with migrating some stata code to R....
Thanks to all who replied. It was very helpful to see a combination of more direct stata->R translations and more R-ish code. which.max() solves my problem this time, but learning about split(), unsplit() and duplicated() should make such problems fewer in the long run. C. ______________________________________________ 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