Learn R Programming

gmgm (version 1.1.2)

rename_var: Rename variables of a Gaussian mixture model

Description

This function renames variables of a Gaussian mixture model.

Usage

rename_var(gmm, var, names)

Value

The gmm object after renaming the variables.

Arguments

gmm

An object of class gmm.

var

A character vector containing the renamed variables.

names

A character vector containing the respective new names of the variables.

See Also

add_var, remove_var

Examples

Run this code
data(gmm_body)
gmm_1 <- rename_var(gmm_body, "FAT", "BODY_FAT")

Run the code above in your browser using DataLab