collapse_nodal_types: collapse nodal types

View source: R/get_nodal_types.R

collapse_nodal_typesR Documentation

collapse nodal types

Description

collapse nodal types

Usage

collapse_nodal_types(nodal_types, include_node_names = FALSE)

Arguments

nodal_types

A list of nodal types.

include_node_names

Logical, if TRUE returns names X0, X1; otherwise returns 0, 1

Value

A list containing nodes with nodal types in a vector form.

Examples


model <- make_model('X -> K -> Y')
(nodal_types <- grab(model, "nodal_types", collapse = FALSE))
CausalQueries:::collapse_nodal_types(nodal_types )

CausalQueries documentation built on June 22, 2024, 6:50 p.m.