For atomic vectors, these functions will sanitize the values. Otherwise, they will set names(), rownames(), and/or colnames() without modification of the values.

makeNames(names, unique = TRUE)

## Arguments

names character vector to be coerced to syntactically valid names. This is coerced to character if necessary. logical; if TRUE, the resulting elements are unique. This may be desired for, e.g., column names.

## Value

character.

## Note

makeNames() sanitizes names using underscores instead of dots, the convention used by make.names().

make.names().
data(mn, package = "acidtest")
#> [13] "X123"            "NA_"