Learn R Programming

bnstruct (version 1.0)

num.variables: get number of variables of a BNDataset.

Description

Return the number of the variables contained in a dataset. This value corresponds to the value of num.nodes of a network built upon the same dataset.

Usage

num.variables(x)
"num.variables"(x)
"num.variables"(x)

Arguments

x
a BNDataset object.

Value

number of variables of the desired dataset.

See Also

num.nodes