convert_case | R Documentation |
This function wraps to_any_case()
from the snakecase
package with certain defaults for the sep_in
and
sep_out
arguments, used for instance to convert cases in
term_labels
.
convert_case(lab, case = NULL, verbose = FALSE, ...)
lab |
Character vector that should be case converted. |
case |
Desired target case. Labels will automatically converted into the
specified character case. See |
verbose |
Toggle warnings and messages on or off. |
... |
Further arguments passed down to |
When calling to_any_case()
from snakecase, the
sep_in
argument is set to "(?<!\\d)\\."
, and the
sep_out
to " "
. This gives feasible results from variable
labels for plot annotations.
lab
, with converted case.
data(iris) convert_case(colnames(iris)) convert_case(colnames(iris), case = "snake")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.