On Wed, Jul 22, 2009 at 9:37 PM, Chuck Cleland<ccleland at optonline.net> wrote: > How about this? > > which(x %in% c(2,3)) Thanks to you all! I had never thought about using %% in this context. -- Michael Knudsen micknudsen at gmail.com http://lifeofknudsen.blogspot.com/