toCamelCase

0th

Percentile

Converts a string of words into a merged camel-cased word

Converts a string of words into a merged camel-cased word, e.g. "a short black" is converted to "aShortBlack".

Usage
## S3 method for class 'default}(s, capitalize=FALSE, split="[ 	]+", ...)':
toCamelCaseundefined

s{A character string.}
 capitalize{If TRUE, the first letter will be in upper case,
   otherwise it will be in lower case.}
 split{A pattern used to identify words.  See strsplit()
   for more details.}
 ...{Not used.}

Returns a character string.

s <- "hello world"
  print(toCamelCase(s))  # helloWorld
  stopifnot(toCamelCase(s) == toCamelCase(toCamelCase(s)))

[object Object]

capitalize and decapitalize.
  chartr().




programming
IO
internal
Aliases
  • toCamelCase.default
  • toCamelCase
Documentation reproduced from package R.utils, version 1.1.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.