Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


cleanEHR (version 0.1)

selectTable: Create wide table from ccRecord

Description

Create wide table from ccRecord

Usage

selectTable(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 doesn't 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