The 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 most time-series aware stats packages that expect a regular cadance to the table.

expand_missing(df, cadance = 1)

Arguments

df

a dense time series table produced from extract_timevarying

cadance

the cadance by which you want to expand the table (default = 1 hour)

Value

a sparse time series table