Skip to content
Prev 31999 / 398506 Next

Is there a simple method of changing text into 'Proper Ca se'

Mulholland, Tom wrote:
Perl experts might do it differently, but the "R way" seems to be

  substring(x, 1, 1) <- toupper(substring(x, 1, 1))
  substring(x, 2) <- tolower(substring(x, 2))

Uwe Ligges