I have a column of numeric values and would like to convert this into a Winning percentage.
Winning percentage is defined like this:
Winning percentage = (Wins+0.5*Ties)/Total Values
Calculate values that are higher, lower and equal in the list
Divide by total number of values in the list.
So given a list of values:
106.32
92.56
96.35
29.54
92.56
93.32
Win Pcts are:
1.000
0.417
0.833
0.000
0.417
0.667
This is as close as I got:
(length(which(dataframe[1,1] > dataframe[1]))/length(dataframe[,1]))