powered by
This function renames variables of a Gaussian mixture model.
rename_var(gmm, var, names)
The gmm object after renaming the variables.
gmm
An object of class gmm.
A character vector containing the renamed variables.
A character vector containing the respective new names of the variables.
add_var, remove_var
add_var
remove_var
data(gmm_body) gmm_1 <- rename_var(gmm_body, "FAT", "BODY_FAT")
Run the code above in your browser using DataLab