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)



macartan/gbiqq documentation built on April 28, 2024, 10:07 p.m.