Strings In Depth12 / 12
Up next

In-place substr<-

s <- "hello"
# substr<- overwrites characters in place
substr(s, 1, 1) <- "J"
print(s)
What you're solving

overwrite part of a string