toCamelCase
From R.utils v1.7.3
by Henrik Bengtsson
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".
- Keywords
- internal, programming, IO
Usage
## S3 method for class 'default':
toCamelCase(s, capitalize=FALSE, split="[ ]+", ...)
Arguments
Value
- Returns a
character
string.
See Also
capitalize
.
chartr
().
Examples
s <- "hello world"
print(toCamelCase(s)) # helloWorld
stopifnot(toCamelCase(s) == toCamelCase(toCamelCase(s)))
Community examples
Looks like there are no examples yet.