Solving the birthday problem in R with one line of code
If you want to quickly calculate the probability of 2 or more people who have the same birthdays in a group. This can be done easily with the pbirthday function from the Stats package.
The probability of 2 people in a group of 25, having the same birthday is 0.5686997 or 57%. Astounding odds!