I have a character vector as:
x<- \"\\t\\t\"
and
y<- \"TOT_A01\"
I would use something like
gsub("\".*\"", paste0("\"", y, "\""), x)
It just means "find text within two quotation marks in x and replace it with y inside two quotation marks"
x
y
I think this is what you want, your example is wrong though