Skip to contents

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

Usage

variables(x) <- value

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

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

Arguments

x

an object.

value

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