Convert a character vector to snake case
Examples
toSnakeCase("myVariable")
#> [1] "my_variable"
toSnakeCase(c("cohort1", "Cohort22b"))
#> [1] "cohort1" "cohort22b"
Convert a character vector to snake case
toSnakeCase("myVariable")
#> [1] "my_variable"
toSnakeCase(c("cohort1", "Cohort22b"))
#> [1] "cohort1" "cohort22b"