grain_and_graph | R Documentation |
Convert a bnc_dag
to igraph
and
grain
objects.
as_igraph(x)
as_grain(x)
x |
The |
as_igraph()
: Convert to a graphNEL.
as_grain()
: Convert to a grain.
data(car)
nb <- bnc('nb', 'class', car, smooth = 1)
# Requires the grain and igraph packages installed
## Not run: g <- as_grain(nb)
## Not run: gRain::querygrain.grain(g)$buying
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.