powered by
Adjust a character vector so that it is valid when used as MxMatrix column or row names.
mxMakeNames(names, unique = FALSE)
a character vector
whether to pass the result through make.unique
note: OpenMx is (much) more restrictive than base R's make.names.
make.names
demo <- c("", "103", "data", "foo.bar[3,2]", "+!", "!+") mxMakeNames(demo, unique=TRUE)
Run the code above in your browser using DataLab