I'm looking to find a solution here that would decide between 3-4 columns on a line-by-line basis (apply?), and allocate the name of highest value column in a new column [df$NAME]. Below is what I'd like the result to look like; what is the best approach for this? Thank you!
| Bird | Cat | Dog | NAME
| 3 | 4 | 10 | DOG
| 5 | 2 | 4 | BIRD
| 3 | 6 | 2 | CAT
| 4 | 8 | 9 | DOG