tocamel | R Documentation |
Convert character vector to camelcase - capitalise first letter of each word.
tocamel(x, delim = "[^[:alnum:]]", upper = FALSE, sep = "", ...)
x |
a character vector to be converted to camelcase |
delim |
a string containing regular expression word delimiter |
upper |
a logical value indicating if the first letter of the first word should be capitalised (defaults to |
sep |
a string to separate words |
... |
additional arguments to be passed to |
a character vector with strings put in camelcase
tocamel("foo.bar") ## [1] "fooBar" tocamel("foo.bar", upper = TRUE) ## [1] "FooBar" tocamel(c("foobar", "foo.bar", "camel_case", "a.b.c.d")) ## [1] "foobar" "fooBar" "camelCase" "aBCD"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.