Learn R Programming

CausalQueries (version 1.1.0)

drop_empty_families: Drop empty families

Description

Drop empty families

Usage

drop_empty_families(data_events)

Value

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

Arguments

data_events

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

Examples

Run this code
# \donttest{
data_events <- data.frame(event = c('X0Y0', 'Y0'),
                          strategy = c('XY', 'Y'),
                          count = 1:0)
CausalQueries:::drop_empty_families(data_events)
# }

Run the code above in your browser using DataLab