[R] changing the values in a list

Peter McMahan peter.mcmahan at gmail.com
Fri Jan 11 04:51:57 CET 2008


On Jan 10, 2008, at 9:48 PM, Peter McMahan wrote:

> y <- matrix(rep(y,ncol(x)),nrow=nrow(y))
> x[is.na(x)] <- y[is.na(x)]

oops, i meant:
y <- matrix(rep(y,ncol(res)),nrow=nrow(y))
res[is.na(res)] <- y[is.na(res)]




More information about the R-help mailing list