Re: [R] merge large matrices

From: Stefan Mischke <mischke_at_sozpsy.unizh.ch>
Date: Fri 03 Jun 2005 - 07:52:15 EST

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 Received on Fri Jun 03 07:59:08 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:22 EST