The extract function 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.

regularise(df, cadance = 1)

Arguments

df

a dense time series table produced from extract

cadance

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

Value

a sparse time series table