R/string_functions.R

Defines functions remove_underscore camel

camel <- function(x) {
  s <- strsplit(x, "\\.")[[1]]
  paste(toupper(substring(s, 1, 1)), substring(s, 2),
    sep = "", collapse = ""
  )
}


remove_underscore <- function(x, replacement = " ") {
  gsub(pattern = "_", replacement = replacement, x = x)
}
ymansiaux/occupationparkingsapp documentation built on July 18, 2022, 12:51 p.m.