I am new to using R and need a bit of advice.
I need to show proportions of winning and I was wondering how to do this. The general gist of this is if 1 person gets a higher number between 1-5, then their friend (Person 2), I need to be able to show who has won.
Can I do this using the if else clause?
Further, if I'm going to then expand this to 4 people, how can I do this?
So far I have:
Friend0_Card <- c (1:5)
Friend1_Card <- c (1:5)
but how can I show who has the highest number per round?