rename_nodes {gmgm}R Documentation

Rename nodes of a Gaussian mixture graphical model

Description

This function renames nodes of a Gaussian mixture graphical model. If this model is a dynamic Bayesian network, the nodes are renamed for each of its transition models.

Usage

rename_nodes(gmgm, nodes, names)

Arguments

gmgm

An object of class gmbn or gmdbn.

nodes

A character vector containing the renamed nodes.

names

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

Value

The gmbn or gmdbn object after renaming the nodes.

See Also

add_arcs, add_nodes, relevant, remove_arcs, remove_nodes

Examples

data(gmbn_body)
gmbn_1 <- rename_nodes(gmbn_body, c("FAT", "GLYCO"),
                       c("BODY_FAT", "GLYCOHEMOGLOBIN"))

data(gmdbn_air)
gmdbn_1 <- rename_nodes(gmdbn_air, "TEMP", "TEMPERATURE")


[Package gmgm version 1.1.2 Index]