expand_missing: Fill in 2d Table to make a Sparse Table

Description Usage Arguments Value

View source: R/extract_timevarying.R

Description

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.

Usage

1
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


CC-HIC/inspectEHR documentation built on Jan. 16, 2020, 11:24 p.m.