[R] merge large matrices

Stefan Mischke mischke at sozpsy.unizh.ch
Thu Jun 2 23:52:15 CEST 2005


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




More information about the R-help mailing list