powered by
is.observed() checks whether a node belongs to the evidence set or not.
is.observed()
is.observed(node, evi)
A character string, matching the node's name.
character
A data.frame of the evidence set.
data.frame
This function returns TRUE if "node" is included in "evi", or, otherwise, FALSE.
# NOT RUN { ## 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) # }
Run the code above in your browser using DataLab