Learn R Programming

BayesNetBP (version 1.6.1)

GetValue: Possible values of a discrete variable

Description

Obtain all the possible values of a discrete variable.

Usage

GetValue(tree, var, message = TRUE)

Arguments

tree

a '>ClusterTree object

var

the variables to be queried

message

type of desired distribution

Value

a vector of the possible values of discrete variable. If the variable is continuous, the returned value will be NULL.

Examples

Run this code
# NOT RUN {
data(toytree)
GetValue(toytree, "HDL")

# }

Run the code above in your browser using DataLab