set variables of an object.

Share:

Description

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

Usage

1
2
3
4
5
6
7
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.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.