I am working with baseball data in R and trying to assign a weight (avg_re) to certain situations, namely how many outs there are and how many runners are on base. I have tw