mxMakeNames {OpenMx} | R Documentation |
Adjust a character vector so that it can be used as MxMatrix column or row names. OpenMx is (much) more restrictive than base R's make.names.
mxMakeNames(names, unique = FALSE)
names |
a character vector |
unique |
whether the pass the result through make.unique |
demo <- c("", "103", "data", "foo.bar[3,2]", "+!", "!+") mxMakeNames(demo, unique=TRUE)