View source: R/balance_panel.R
| has_gaps | R Documentation |
This function checks whether a panel_data() object has implicit gaps
(missing rows for some entity-wave combinations).
has_gaps(data)
data |
A |
A logical value. TRUE if there are gaps, FALSE otherwise.
scan_gaps(), balance_panel()
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
has_gaps(wages) # FALSE (complete data)
# Create data with gaps
wages_gaps <- wages[wages$t != 3 | wages$id != wages$id[1], ]
has_gaps(wages_gaps) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.