Thanks to you all for your helpful solutions. I particularly like the simplicity of Gabor's na.omit( sapply(... ) ) formulation, but you've all given me some ideas to think about. Thanks again, Hadley