extract_timevarying
returns a non-sparse table (i.e. rows/hours
with no recorded information for a patient are not presented in the table)
This function serves to expand the table and fill missing rows with NAs. This
is useful when working with packages that expect a regular cadence to the
table.
expand_missing(df)
a table returned from extract_timevarying
a sparse table