View source: R/balance_panel.R
| scan_gaps | R Documentation |
This function identifies which entity-wave combinations are missing
in a panel_data() object.
scan_gaps(data)
data |
A |
A tibble with columns for the id variable and wave variable, showing which combinations are missing. If there are no gaps, returns a tibble with zero rows.
has_gaps(), balance_panel()
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
# Create data with gaps
wages_gaps <- wages[!(wages$t == 3 & wages$id == wages$id[1]), ]
scan_gaps(wages_gaps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.