As much i know, there is not such specific function between R-R interval and T wave, although T wave is the part of R-R interval and variation in T wave will impact R-R interval. T wave represents re-polarization of the ventricles, while R-R interval includes other functional intervals.