Re: [R] changing the values in a list

From: Peter McMahan <peter.mcmahan_at_gmail.com>
Date: Thu, 10 Jan 2008 21:51:57 -0600

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)]



R-help_at_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. Received on Fri 11 Jan 2008 - 03:54:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Jan 2008 - 05:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive