View source: R/get_nodal_types.R
collapse_nodal_types | R Documentation |
collapse nodal types
collapse_nodal_types(nodal_types, include_node_names = FALSE)
nodal_types |
A list of nodal types. |
include_node_names |
Logical, if TRUE returns names X0, X1; otherwise returns 0, 1 |
A list
containing nodes with nodal types in a vector form.
model <- make_model('X -> K -> Y')
(nodal_types <- grab(model, "nodal_types", collapse = FALSE))
CausalQueries:::collapse_nodal_types(nodal_types )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.