reorder | R Documentation |
This function reorders the variables and the mixture components of a Gaussian mixture model.
reorder(gmm, var = NULL, comp = NULL)
gmm |
An object of class |
var |
A character vector containing the variables in the desired order.
If variables are not specified, they are added after the ordered ones. If
|
comp |
An integer vector containing the indexes of the mixture component
in the desired order. If components are not specified, they are added after
the ordered ones. If |
The reordered gmm
object.
data(gmm_body) gmm_1 <- reorder(gmm_body, var = c("WAIST", "AGE", "FAT", "HEIGHT", "WEIGHT"), comp = c(2, 1, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.