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

View source: R/extract_timevarying.R

expand_missingR Documentation

Fill in 2d Table to make a Sparse Table

Description

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.

Usage

expand_missing(df)

Arguments

df

a table returned from extract_timevarying

Value

a sparse table


DocEd/wranglEHR documentation built on May 28, 2022, 1:50 p.m.