I have a matrix in which I want to replace all values with 0 if they are below 25. I want to keep first row and column.
p1 p10 p16 p19 p25 p3 p5 p6 p8 p9
call1 567 0 3 0 18 17 8 4 6 7
call20 4900 7 6 2 23 26 20 14 12 29
echo34 73784 1 4 1 6 4 1 4 8 5
kol45 145873 6 4 0 11 17 5 9 22 11
When I am removing those values, I am also removing row and column names and I don't want that.
r
here; do answers need to user
for the solution (noticing that we already have one perl and two awk answers). – Jeff Schaller Jun 20 '18 at 16:23