Learn R Programming

dagR (version 1.1.1)

is.unknown: Check if a DAG node presents an unknown variable.

Description

Another helper function, internally used by brute.search. It checks whether the node specified is of type=2 or is named 'unknown'.

Usage

is.unknown(x, dag)

Arguments

x
The node of interest.
dag
The DAG to be evaluated.

Value

  • TRUE if unknown (acc. to type or name), FALSE otherwise.

See Also

brute.search

Examples

Run this code
dag2<-demo.dag2();
is.unknown(2, dag2);
is.unknown(3, dag2);
dag2u<-dag2; dag2u$names[2]<-"unknown";
is.unknown(2, dag2u);
is.unknown(3, dag2u);

Run the code above in your browser using DataLab