Thanks a lot! Both versions seem to work equally efficient. N8, Stefan
replace <- is.na(B) B[replace] <- A[replace] Duncan Murdoch
B[is.na(B)] <- A[is.na(B)] Sarah
______________________________________________ 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