Learn R Programming

cleanEHR (version 1.0)

ccd_select_table: Create the table for ccTable from ccRecord

Description

Create the table for ccTable from ccRecord

Usage

ccd_select_table(record, items_opt = NULL, items_obg = NULL, freq,
  return_list = FALSE)

Arguments

record

ccRecord

items_opt

character vectors. Items (HIC code) selected in item_opt are optional items, which will be automatically filled when item is missing.

items_obg

obligatory items that is obligatory; Any episode that does not contain item in this vector will be removed.

freq

numeric cadence in hour.

return_list

logical if TRUE return as a list.

Value

data.table