Re: [R] apply for each value

2011-10-11 Thread Sarah Goslee
Hi, On Tue, Oct 11, 2011 at 12:08 PM, Ben qant wrote: > Hello, > > There has to be a more R'ish way to do this. I have two matrices, one has > the values I want, but I want to NA some of them. The other matrix has > binary values that tell me if I want to NA the values in the other matrix. I > pr

[R] apply for each value

2011-10-11 Thread Ben qant
Hello, There has to be a more R'ish way to do this. I have two matrices, one has the values I want, but I want to NA some of them. The other matrix has binary values that tell me if I want to NA the values in the other matrix. I produce a third matrix based on this. I've also tried apply() passing