drop_empty_families: Drop empty families

View source: R/data_helpers.R

drop_empty_familiesR Documentation

Drop empty families

Description

Drop empty families

Usage

drop_empty_families(data_events)

Arguments

data_events

A data.frame. It must be compatible with nodes in model. The default columns are event, strategy and count.

Value

Returns data events with strategies (excluding strategy families that contain no observed data)

Examples


data_events <- data.frame(event = c('X0Y0', 'Y0'),
                          strategy = c('XY', 'Y'),
                          count = 1:0)
CausalQueries:::drop_empty_families(data_events)



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