convert matrix of comorbidities into data frame, preserving visitId information
icd9ComorbidMatToDf(x, visitId = "visitId",
stringsAsFactors = getOption("stringsAsFactors"))
Matrix of comorbidities, with row and columns names defined
single character string to name the visitId column of returned data.frame. Default is "visitId".
whether the resulting data frame should have strings, i.e. visitId converted to factor. Default is to follow the current session option.