Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Lutz P Breitling <l.breitling@posteo.de>

See Also

Examples

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);

dagR

R Functions for Directed Acyclic Graphs

v1.2.0
GPL-2
Authors
Lutz P Breitling
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.