query_to_expression: Helper to turn query into a data expression

View source: R/map_query_to_nodal_type.R

query_to_expressionR Documentation

Helper to turn query into a data expression

Description

Helper to turn query into a data expression

Usage

query_to_expression(query, node)

Arguments

query

A character string. An expression defining nodal types to interrogate realise_outcomes. An expression of the form "Y[X=1]" asks for the value of Y when X is set to 1

node

A character string. The quoted name of a node.

Value

A cleaned query expression


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