data.frame of long-form data, one column for visitId and one for ICD
code
visitId
single character, if NULL will use "visitId" if exists,
otherwise the first column
icdId
single character string with name of column containing the ICD
codes. If left as NULL, the field is guessed to be the first matching ICD
or icd, and a warning is given if multiple columns match.
prefix
character, default "icd_" to prefix new columns
empty
value to fill out empty fields of wide output data, defaults to
NA
width,
single integer, if specified, writes out this many columns even
if no patients have that many codes. Must be greater than or equal to the
maximum number of codes per patient.