conv_hep_bileleakage_type | R Documentation |
Parse a column for type of bile leakage
conv_hep_bileleakage_type(vec)
vec |
a character vector of values to convert |
NSQIP encodes the hep_bileleakage
column as either a clinical diagnosis or
persistent drainage. This function extracts those values from character vectors
and factors them.
a factor vector
x <- c("No",
"Yes-clinical diagnosis, drain continued on or after POD3",
"Yes-clinical diagnosis, percutaneous drainage performed",
"Yes-clinical diagnosis, reoperation performed",
"Yes-clinical diagnosis, spontaneous wound drainage",
"Yes-persistent drainage, drain continued on or after POD3",
"Yes-persistent drainage, percutaneous drainage performed",
"Yes-persistent drainage, reoperation performed",
NA)
nsqipr:::conv_hep_bileleakage_type(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.