is.observed: Observed Node

View source: R/Inference.R

is.observedR Documentation

Observed Node

Description

is.observed() checks whether a node belongs to the evidence set or not.

Usage

is.observed(node, evi)

Arguments

node

A character string, matching the node's name.

evi

A data.frame of the evidence set.

Value

This function returns TRUE if "node" is included in "evi", or, otherwise, FALSE.

Examples


## Data frame of the evidence set
  obs <- data.frame(lip = "1", alm2 = 0.5, stringsAsFactors=FALSE)
  
## Check if x is in obs
  is.observed("x", obs)

MoTBFs documentation built on April 18, 2022, 5:06 p.m.

Related to is.observed in MoTBFs...