variables-set: set variables of an object.

variables<-R Documentation

set variables of an object.

Description

Set the list of variable names in a BN or BNDataset object.

Usage

variables(x) <- value

## S4 replacement method for signature 'BN'
variables(x) <- value

## S4 replacement method for signature 'BNDataset'
variables(x) <- value

Arguments

x

an object.

value

vector containing the variable names of the object. Overwrites num.nodes slot if non-matching.


bnstruct documentation built on May 29, 2024, 3:17 a.m.