[r] Change variable name in for loop using R