> (2) Is there a more simpler way to build the vector of positions (versus > using append in a loop, as above), using functions such as match() and > apply()? How about which.na <- function(x) which(is.na(x)) ? Hadley