Replace commas with dots

Simple question:

How do I replace all the commas with dots using stringr package?


Simple answer:

text = "a,b,c,d,e"
str_replace_all(text, ",", ".")
#> [1] "a.b.c.d.e"

Created on 2021-08-10 by the reprex package (v2.0.0)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.