I am trying to assign some values to some variable names in R. For example,
var1 = "old_string1"
var2 = "old_string2"
Now I have a list of new values I would like to assign to var1 and var2. Say c("new_string1", "new_string2"). How would I, using a loop, assign the values in the string to var1 and var2?