fix.names | R Documentation |
Fix names to remove problematic alphanumeric characters like spaces, quotes
fix.names(nam, upper=FALSE, lower=FALSE)
nam |
string |
upper |
logical, TRUE= convert to upper case |
lower |
logical, TRUE= convert to lower case |
Currently only space, single and double quotes.
string, with quaote replaced with underscore
Jonathan M. Lees<jonathan.lees@unc.edu>
#### examples with embedded quotes are not available
#### because they interfere with R documentation
LAM = "SILENCED LAMB"
fix.names(LAM, lower=TRUE)
LAM = "Silence my Lamb"
fix.names(LAM, upper=TRUE)
LAM = "SILeNCED LAMB"
fix.names(LAM)
### try with single quote
LAM = "O'brian LAMB"
fix.names(LAM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.