R2.ts function

R2