conv_hep_bileleakage_type: Parse a column for type of bile leakage

conv_hep_bileleakage_typeR Documentation

Parse a column for type of bile leakage

Description

Parse a column for type of bile leakage

Usage

conv_hep_bileleakage_type(vec)

Arguments

vec

a character vector of values to convert

Details

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.

Value

a factor vector

Examples

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)


dylanrussellmd/nsqipr documentation built on Oct. 13, 2023, 11:01 a.m.