Displaying 1 result from an estimated 1 matches for "tp1819018p1819018".
2010 Apr 09
3
How to replace all non-maximum values in a row with 0
...two max values, then "0" for both. Example:
from:
2 3 0 0 200
30 0 0 2 50
0 0 3 0 0
0 0 8 8 0
to:
0 0 0 0 1
0 0 0 0 1
0 0 1 0 0
0 0 0 0 0
Thanks!
--
View this message in context: http://n4.nabble.com/How-to-replace-all-non-maximum-values-in-a-row-with-0-tp1819018p1819018.html
Sent from the R help mailing list archive at Nabble.com.