powered by
Scan a tsibble for implicit missing observations
scan_gaps(.data, .full = FALSE)
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>)
Other implicit gaps handling: count_gaps(), fill_gaps(), has_gaps()
count_gaps()
fill_gaps()
has_gaps()
# NOT RUN { scan_gaps(pedestrian) # }
Run the code above in your browser using DataLab