I am trying to find the minimum value in each row in a database that looks like this
V1 V2 V3 V4 V5
3 2 4 10 11
and I have tried two different methods to get the minimum value
apply(temp[,],1,min)
and
apply(temp, 1, FUN = min)
I know these are essentially the same thing. Instead of getting a result of 2, I get a result of 10. If I remove the 10, the result become 11. I would only like a result of 2 and am unsure of how to obtain this.