Generating a column of probabilities in r for a dataframe
I have a dataframe df
of football matches and corresponding mean scoring rates for each team. The first 2 columns are Home and Away teams, the 3rd and 4th columns are mean scoring rates for Home and Away teams respectively. For example:
Generating a table of probabilities in r for a dataframe
I have a dataframe df
of football matches and corresponding mean scoring rates for each team. The first 2 columns are Home and Away teams, the 3rd and 4th columns are mean scoring rates for Home and Away teams respectively. For example: