Convert character vector to camelcase - capitalise first letter of each word.
tocamel(x, delim = "[^[:alnum:]]", upper = FALSE, sep = "", ...)a character vector to be converted to camelcase
a string containing regular expression word delimiter
a logical value indicating if the first letter of the first word should be capitalised (defaults to FALSE)
a string to separate words
additional arguments to be passed to strsplit
a character vector with strings put in camelcase
tocamel("foo.bar")
#> [1] "fooBar"
## [1] "fooBar"
tocamel("foo.bar", upper = TRUE)
#> [1] "FooBar"
## [1] "FooBar"
tocamel(c("foobar", "foo.bar", "camel_case", "a.b.c.d"))
#> [1] "foobar" "fooBar" "camelCase" "aBCD"
## [1] "foobar" "fooBar" "camelCase" "aBCD"