Description Usage Arguments Value Examples
This function creates a sensible variable name by replacing all non-alphanumeric characters with underscores. This is useful when the string is to be used as a the name of a list element.
1 |
s |
The string to be used as a variable name |
The string with non-alphanumeric characters replaced by underscores
1 2 | s <- "a-b"
edf:::create.variable.name(s)
|
[1] "a_b"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.