> > > >without having to check the vector element by element? Thanks a lot! which.max() will coerce the logical to numeric and give the location of the first max, which is the first TRUE. J.R. Lockwood 412-683-2300 x4941 lockwood at rand.org http://www.rand.org/methodology/stat/members/lockwood/