I need to insert the following characters: c(“me3”, “ac”) in positions c(1, 6) in the following string “KSTGGKAPR”. What is the most elegant way to do this? Can I avoid writing a loop?
I need to insert the following characters: c(“me3”, “ac”) in positions c(1, 6) in the following string “KSTGGKAPR”. What is the most elegant way to do this? Can I avoid writing a loop?