makeNames | R Documentation |
For atomic
vectors, these functions will sanitize the values. Otherwise,
they will set names()
, rownames()
,
and/or colnames()
without modification of the values.
makeNames(object, ...)
## S4 method for signature 'character'
makeNames(object, unique = TRUE, smart = FALSE)
## S4 method for signature 'factor'
makeNames(object, unique = TRUE, smart = FALSE)
object |
Object. |
unique |
|
smart |
|
... |
Additional arguments. |
Sanitizes names using underscores instead of dots, the convention used by
make.names()
.
Modified object.
Updated 2023-09-21.
stringi::stri_trans_general
.
data(syntactic, package = "AcidTest")
object <- syntactic[["character"]]
makeNames(object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.