I am currently working with a matrix and I want to find the lowest positive value in each row.
Using apply(my.matrix,1,min) won't work since the output will always be 0...
Is there a way to find the lowest value excluding 0?
I am currently working with a matrix and I want to find the lowest positive value in each row.
Using apply(my.matrix,1,min) won't work since the output will always be 0...
Is there a way to find the lowest value excluding 0?
This variation on your approach works for me:
You can do this with an anonymous function.