powered by
Scan a tsibble for implicit missing observations
scan_gaps(.data, .full = FALSE, .start = NULL, .end = NULL)
A tsibble.
FALSE inserts NA for each keyed unit within its own period.
FALSE
NA
TRUE fills NA over the entire time span of the data (a.k.a. fully balanced panel).
TRUE
start() pad NA to the same starting point (i.e. min(<index>)) across units.
start()
min(<index>)
end() pad NA to the same ending point (i.e. max(<index>)) across units.
end()
max(<index>)
Set custom starting/ending time that allows to expand the existing time spans.
Other implicit gaps handling: count_gaps(), fill_gaps(), has_gaps()
count_gaps()
fill_gaps()
has_gaps()
scan_gaps(pedestrian)
Run the code above in your browser using DataLab