I have the following vector
c(“AXX”, “XAX”, “XXA”)
I would like to replace all the “A” to “B”, but not if “A” is at the beginning of the string, so I would like to get c(“AXX”, “XBX”, “XXB”)
I have the following vector
c(“AXX”, “XAX”, “XXA”)
I would like to replace all the “A” to “B”, but not if “A” is at the beginning of the string, so I would like to get c(“AXX”, “XBX”, “XXB”)