Using R, find the probabilities for all the possible winning 5-card poker hands above a simple Ace high hand. These are listed below:
a. Royal Flush (A, K, Q, J, 10 all in one suit) (1 point)
b. Straight Flush (any five consecutive cards all in one suit, except those in a. above) (1 point)
c. Four of a Kind (e.g., four Aces β or any other kind β and any other card) (1 point)
d. Full House (3 of one kind and 2 of another, e.g., 3 Aces & 2 Kings) (1 point)
e. Straight (any 5 consecutive cards, but can be from 2 or more suits) (1 point)
f. Flush (any 5 cards from the same suit, but not in consecutive order) (1 point)
g. Two Pair (e.g., 2 Aces & 2 Kings β or any other two different kinds, and any other card not an Ace or a King β or not the same as the kinds with 2 each) (1 point)
h. Three of a Kind (e.g., three Aces β or any other kind β and any two other cards not Aces β or same kind as the 3 β and not of the same kind as each other) (1 point)
i. Two of a Kind = One Pair (e.g., two Aces β or any other kind β any three other cards not Aces β or the same kind as the 2 = and not the same kind as each other) (1 point)
j. Have these been ordered correctly above in terms of which type of hand would be considered to beat the other? (1 point)