50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

BayesNetBP (version 1.2.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 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
data(toytree)
GetValue(toytree, "HDL")

Run the code above in your browser using DataLab