Re: [R] replace values in a matrix subject to boolean condition

2005-03-24 Thread Uwe Ligges
Werner Wernersen wrote: Hi everybody! I am sorry to bother you with a question so simple but I think there might be a better solution: I have a matrix of size 360x501 where I want to check the value of each 5th column of each row and replace it (and the 6th, 7th, 8th column) by zero if the

Re: [R] replace values in a matrix subject to boolean condition

2005-03-24 Thread Werner Wernersen
Uwe Ligges wrote: Werner Wernersen wrote: Hi everybody! I am sorry to bother you with a question so simple but I think there might be a better solution: I have a matrix of size 360x501 where I want to check the value of each 5th column of each row and replace it (and the 6th, 7th, 8th

[R] replace values in a matrix subject to boolean condition

2005-03-23 Thread Werner Wernersen
Hi everybody! I am sorry to bother you with a question so simple but I think there might be a better solution: I have a matrix of size 360x501 where I want to check the value of each 5th column of each row and replace it (and the 6th, 7th, 8th column) by zero if the value is less than 1000. I