On 10/5/07, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote: > x[is.na(x)]<- y[is.na(x)] but this will only work correctly if x and y > are the same length so I hope that is > what you mean by the same style.
That can be fixed if y is at least as long as to reach the last NA in x like this: x[is.na(x)] <- y[which(is.na(x))] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.