In R, I\'d like to convert
c(\"ThisText\", \"NextText\")
to
c(\"this.text\", \"next.text\")
This is the r
You could do this also via the snakecase package:
snakecase
install.packages("snakecase") library(snakecase) to_snake_case(c("ThisText", "NextText"), sep_out = ".") # [1] "this.text" "next.text"
Github link to package: https://github.com/Tazinho/snakecase