R/simpleCap.R

simpleCap <- function(x) {
  s <- strsplit(x, " ")[[1]]
  paste(toupper(substring(s, 1,1)), substring(s, 2),
        sep="", collapse=" ")
}
mikejohnson51/ET documentation built on May 5, 2019, 12:31 p.m.