Rbar function

calculate Rˉ\bar{R}