Is there an easy way to substitute dashes with dots in every element of character vector in R?
input
c("T-A-B", "C-L1")
output
c("T.A.B", "C.L1")
Was looking for help in stringi
package but couldn't find answer.
There is stri_substitute
function but I don't know how to use this.