Re: [R] changing the values in a list

From: dxc13 <dxc13_at_health.state.ny.us>
Date: Thu, 10 Jan 2008 20:07:53 -0800 (PST)

I will give it a try, thanks for your input!

Peter McMahan wrote:
>
>
> 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.
>
>
-- 
View this message in context: http://www.nabble.com/changing-the-values-in-a-list-tp14749183p14749502.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 - 04:12:21 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 - 06:32:02 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